📄 exa020803_freqz.m
字号:
%-----------------------------------------------------------------
% exa020803_freqz.m, for example 2.8.3
% to test freqz.m and to obtain the frequency response.
%-----------------------------------------------------------------
clear all;
b=[.001836,.007344,.011016,.007374,.001836];
a=[1,-3.0544,3.8291,-2.2925,.55075];
[H,w]=freqz(b,a,256,1);
Hr=abs(H);
Hphase=angle(H);
Hphase=unwrap(Hphase); % 解卷绕
subplot(211)
plot(w,Hr);grid on;
ylabel(' Amplitude Freq. Res.')
subplot(212)
plot(w,Hphase);grid on;
ylabel(' Phase Freq. Res.')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -