📄 p310.m
字号:
%program p310
wp=0.2*pi;
ws=0.3*pi;
Rp=1;
Rs=15;
Ts=0.01;
Nn=128;
Wp=wp/Ts;%convert digital freq. to analog freq.
Ws=ws/Ts;
[N,Wn]=buttord(Wp,Ws,Rp,Rs,'s')%compute order and cutoff freq.
[z,p,k]=buttap(N);%compute the analog filter
[Bp,Ap]=zp2tf(z,p,k);
[b,a]=lp2lp(Bp,Ap,Wn);
[bz,az]=impinvar(b,a,1/Ts)
freqz(bz,az,Nn,1/Ts)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -