c9ex14.m
来自「数字信号处理Matlab实现?中藕糯鞰atlab实现数字信号处理Matlab」· M 代码 · 共 17 行
M
17 行
f = [0 0.2 0.22 0.5 0.52 1]; % Specify f vector m = [1 1 0.4 0.4 0 0]; % Specify amplitude responsen = 10; % Specify order[b,a] = yulewalk(n,f,m); % Compute transfer function[h,w] = freqz(b,a,512); % Determine filter responsesubplot(2,1,1) % Designate first subplotplot(f/2,m,w/(2*pi),abs(h),'--') % Plot amplitude responsexlabel('Normalized Frequency - r') % Label x-axisylabel('Amplitude') % Label y-axisphase = angle(h); % Calculate phasephase = unwrap(phase); % Unwrap phasephasedeg = phase*180/pi; % Express phase in degreessubplot(2,1,2) % Designate second subplotplot(w/(2*pi),phasedeg,'--') % Plot phase responsexlabel('Normalized Frequency - r') % Label x-axisylabel('Phase - degrees') % Label y-axis
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?