d_filter.m

来自「经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助」· M 代码 · 共 19 行

M
19
字号
num=input('input the numerator polynomial coefficient vector =:');
den=input('input the denominator polynomial coefficient vector =:');
%reg=input('input the frequency region w=');
w=0:0.01:2*pi;

[h,w]=freqz(num,den,w);
r=real(h);
i=imag(h);

subplot(2,2,1)
plot(w/(pi),abs(h));axis([0,2,0,1.1*max(abs(h))])
grid on;
title('Magnitude response');
xlabel('Frequency (pi)')




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?