⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a_filter.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
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*reg:2*pi*reg;

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

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




⌨️ 快捷键说明

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