fig7-36.m
来自「数字信号处理(机械工业出版社)的源码」· M 代码 · 共 12 行
M
12 行
% fig7-36
N = 8; % Order of the filter (number of poles and zeros).
[Bh,Ah] = yulewalk(N,f,H); % Working, please wait.....
n = 256;
hh = freqz(Bh,Ah,n); % compute complex frequency response
hy = abs(hh); % compute magnitude
ff = fs/(2*n) * (0:n-1);
plot(fhz,H,ff,hy)
title('Actual vs. Desired Frequency Response')
xlabel('Frequency (Hz)')
ylabel('Magnitude')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?