求MATLAB大神指点clear all;close all;t=0:0.004:1;f0=0.5;f1=32;y1=chirp(0,f0,1,f1);y2=hilbert(y1);y=y1+j*y2;c=fft(y)N=256;nbands=8;[hopt,H,G]=opt_filter(N,nbands);stem(hopt,'k');grid; h0=H(1,:); h1=H(2,:); h2=H(3,:); h3=H(4

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 01:38:52
求MATLAB大神指点clear all;close all;t=0:0.004:1;f0=0.5;f1=32;y1=chirp(0,f0,1,f1);y2=hilbert(y1);y=y1+j*y2;c=fft(y)N=256;nbands=8;[hopt,H,G]=opt_filter(N,nbands);stem(hopt,'k');grid;     h0=H(1,:);     h1=H(2,:);     h2=H(3,:);     h3=H(4

求MATLAB大神指点clear all;close all;t=0:0.004:1;f0=0.5;f1=32;y1=chirp(0,f0,1,f1);y2=hilbert(y1);y=y1+j*y2;c=fft(y)N=256;nbands=8;[hopt,H,G]=opt_filter(N,nbands);stem(hopt,'k');grid; h0=H(1,:); h1=H(2,:); h2=H(3,:); h3=H(4
求MATLAB大神指点
clear all;
close all;
t=0:0.004:1;
f0=0.5;
f1=32;
y1=chirp(0,f0,1,f1);
y2=hilbert(y1);
y=y1+j*y2;
c=fft(y)
N=256;
nbands=8;
[hopt,H,G]=opt_filter(N,nbands);
stem(hopt,'k');grid;
     h0=H(1,:);
     h1=H(2,:);
     h2=H(3,:);
     h3=H(4,:);
     h4=H(5,:);
     h5=H(6,:);
     h6=H(7,:);
     h7=H(8,:);
stem(h0,'k.');grid;
[H0,w]=freqz(h0,1,512,1);
[H1,w]=freqz(h1,1,512,1);
[H2,w]=freqz(h2,1,512,1);
[H3,w]=freqz(h3,1,512,1);
[H4,w]=freqz(h4,1,512,1);
[H5,w]=freqz(h5,1,512,1);
[H6,w]=freqz(h6,1,512,1);
[H7,w]=freqz(h7,1,512,1);
for i=0:nbands-1;
    z=c.*H(i);
end
plot(w,z)
这是程序  

for k=1:nbands
for l=1:flen
m1=cos(pi*(2*k-1)*(2*l-1)/(4*nbands));
m2=sin(pi*(2*k-1)*(2*l-1)/(4*nbands));
H(k,l)=2.0*(real(a(k))*m1-imag(a(k))*m2)*hopt(l);
end
for l=1:flen
m1=cos(pi*(2*k-1)*(2*l-1)/(4*nbands));
m2=sin(pi*(2*k-1)*(2*l-1)/(4*nbands));
G(k,l)=2.0*(real(a(k))*m1+imag(a(k))*m2)*hopt(l);
end
end

求MATLAB大神指点clear all;close all;t=0:0.004:1;f0=0.5;f1=32;y1=chirp(0,f0,1,f1);y2=hilbert(y1);y=y1+j*y2;c=fft(y)N=256;nbands=8;[hopt,H,G]=opt_filter(N,nbands);stem(hopt,'k');grid; h0=H(1,:); h1=H(2,:); h2=H(3,:); h3=H(4
for i=1:nbands;
z=c.*H(i);
end
MATLAB 不能从0开始,和C不一样
你补充的问题什么意思啊?

求MATLAB大神指点clear all;close all;t=0:0.004:1;f0=0.5;f1=32;y1=chirp(0,f0,1,f1);y2=hilbert(y1);y=y1+j*y2;c=fft(y)N=256;nbands=8;[hopt,H,G]=opt_filter(N,nbands);stem(hopt,'k');grid; h0=H(1,:); h1=H(2,:); h2=H(3,:); h3=H(4 高一化学,求大神指点 求化学大神指点 matlab 中用subplot画图,为什么会丢失子图啊?有5个分量,用subplot画在一个图里面,为什么第三分量会丢失?如果把循环数改为4,只画4个,就没有问题了.求高手指点.程序如下:clc;clear all;close all;t = 0:0 用matlab画函数频域图,求程序 以下是一个函数的程序,求教将其频域图画出的程序,用matlab编程.clear d1;clear d2;clear d3;clear l1;clear l2;clear all;%输入输出对比图fs=480000;C=2.37;A=1;B=1;G=1;H=1;j1=besselj(1,2.37) 英语 不会 求大神指点指点急! 请问下Matlab中的clear和clear all命令有什么不同? matlab求大神指点课本上面的上面的例子为:clear allclcn=[4500:500:5500];T=[78.59 83.04 85.01 86.63 87.09 85.87 84.67 82.50 80.54];dt=polyfit(n,T,4);n1=1000:100:5400;t=polyval(dt,n1);figure(1)title('发动机外特性‘)plot(n1,t 求MATLAB大神 高中化学选择题求大神指点 手机静电求大神指点 求各位数学大神指点 十五题求大神指点! 分别是什么求大神指点 求matlab绘图大神,隐函数绘图请问以下程序错在哪了?为啥第2个图作不出来?仔细讲解一下for循环那段,clc;clear all;w=[];z=[];figure;h=ezplot('w^(z/500)*0.01*(pi*sin(z/500*pi/2)+2*cos(z/500*pi/2)*log(w))+2*log(w)',[0,10^6 求大神支招,我想用ode45来求解一个微分方程的数值解,但是MATLAB老是说有错,怎么办?程序是clear all;options = odeset('RelTol',1e-4,'AbsTol',[1e-4 1e-4]);[T,Y]=ode45(@guanxi,[0 12],[0 1 1],options);对应 guanxi.m 是funct matlab程序=========? Error using ==> times Matrix dimensions must agree错误====求大神===谢谢==clear all;Wp=0.2*pi;Ws=0.4*pi;tr_width=Ws-Wp; %过渡带宽度N=ceil(6.6*pi/tr_width)+1 %滤波器长度n=0:1 求大神做matlab作业.