代码搜索结果
找到约 10,000 项符合
7 的代码
plot_7_7.m
% make figure 7.7
Z2=zeros(4,491);
load run2
tail=[0 5 8 66];
z=sum(real(E).^2,2);
[y ind]=sort(z);
newE=E(ind,:);
for i=1:4,
Z2(i,:)=sum((real(newE(1:400-tail(i),:)).^2))/(400-tail(i));
example7_7.m
wp=0.2*pi;ws=0.3*pi;
tr_width=ws-wp;
M=ceil(6.6*pi/tr_width)
n=[0:1:M-1];
wc=(ws+wp)/2;
hd=ideal_lp(wc,M);
w_ham=(hamming(M))';
h=hd.*w_ham;
[db,mag,pha,grd,w]=freqz_m(h,[1]);
delta_w=2*pi/
example7_7.m
%首先,创建包含了期望的频率响应的矩阵Hd
[f1,f2] = freqspace(21,'meshgrid');
Hd = zeros(21);
Hd(7:15,7:15) = 1;
Axis([-1 1 –1 1 0 1.2]),
colormap(jet(64))
mesh(f1,f2,Hd)
%期望的滤波器的频率响应见图7-16
%然后,设计通过此响应的滤波器
h
ex7_7.m
a=[1,2,-2;1,1,1;2,2,1];
b=[9;7;6];
[x,n]=jacobi(a,b,[0;0;0])
[x,n]=gauseidel(a,b,[0;0;0])
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
chap7_7.mdl
Model {
Name "chap7_7"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes
cw7-7.cpp
#include
#include
#include
#define tydzien 40
#define godzina 40
#define nad_godzina 1.5 * godzina
#define stopa1 0.15
#define stopa2 0.20
#define stopa3 0.25
program_7_7.m
% Program 7_7
% Kaiser Window Generation Program
%
fpts = input('Type in the bandedges = ');
mag = input('Type in the desired magnitude values = ');
dev = input('Type in the ripples in each band
m7_7.m
%Single Neural Adaptive PID Controller
clear all;
close all;
x=[0,0,0]';
xiteP=0.40;
xiteI=0.35;
xiteD=0.40;
%Initilizing kp,ki and kd
wkp_1=0.10;
wki_1=0.10;
wkd_1=0.10;
%wkp_1=rand;
例7-7.c
#include "reg51.h"
#define ON 1
#define OFF 0
sbit Lamp1=P0^0;
sbit Lamp2=P0^1;
sbit Lamp3=P0^0;
sbit Lamp4=P0^1;
sbit Lamp5=P0^0;
sbit Lamp6=P0^1;
sbit Lamp7=P0^0;
sbit Lamp8=P0^1;