?? 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 + -