📄 ex3051.m
字号:
Wp=0.2*pi;Ws=0.3*pi;Rp=1;As=16;
Ripple=10^(-Rp/20);Attn=10^(-As/20);
[b,a]=afd_elip(Wp,Ws,Rp,As);
[C,B,A]=sdir2cas(b,a)
[db,mag,pha,w]=freqs_m(b,a,0.5*pi);
[ha,x,t]=impulse(b,a);
% plots
subplot(221)
plot(w/pi,mag);axis([0,0.5,0,1.1]);grid
subplot(222)
plot(w/pi,db);axis([0,0.5,-30,1]);grid
subplot(223)
plot(w/pi,pha/pi);axis([0,0.5,-1,1]);grid
subplot(224)
plot(t,ha,[0,max(t)],[0,0])
axis([0,max(t),min(ha),max(ha)])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -