?? program_4_1.m
字號:
% Program 4_1
% 4-th Order Analog Butterworth Lowpass Filter Design
%
format long
% Determine zeros and poles
[z,p,k] = buttap(4);
disp('Poles are at');disp(p);
% Determine transfer function coefficients
[pz, pp] = zp2tf(z, p, k);
% Print coefficients in descending powers of s
disp('Numerator polynomial'); disp(pz)
disp('Denominator polynomial'); disp(real(pp))
omega = [0: 0.01: 5];
% Compute and plot frequency response
h = freqs(pz,pp,omega);
plot (omega,20*log10(abs(h)));grid
xlabel('Normalized frequency'); ylabel('Gain, dB');
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -