?? p202.m
字號:
%PROGRAM p202
%chebyshev type I analog lowpass prototype
n=0:0.01:2;
N=8;
Rp=1;
[z,p,k]=cheb1ap(N,Rp);
[b,a]=zp2tf(z,p,k);%Zero-pole to transfer function conversion.
[H,w]=freqs(b,a,n);%returns the complex frequency response vector H of the filter b/a:
magH=(abs(H)).^2;
plot(w,magH);
axis([0 2 0 1]);%AXIS([XMIN XMAX YMIN YMAX]) sets scaling for the x- and y-axes on the current plot
xlabel('w/wc');
ylabel('|H(jw)|^2');
title('N=8');
grid
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -