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

📄 prog7b6.m

📁 这是几种滤波器的MATLAB的M文件源码
💻 M
字号:
%	
%	Program name - prog7b6.m, p453
%  m-file for calculating the coefficients of an FIR filter
%  with arbitrary magnitude response
%
Fs=2000;
N=110;
fd=[0 0.15 0.25 0.45 0.5 0.75 0.85 1];	%	Frequency sampling points
Hd=[1 1 0.3 0.3 0.1 0.1 0 0];				%	Frequency samples
hn=fir2(N-1, fd, Hd);						%	Compute the impulse response
[H, f] = freqz(hn, 1, 512, Fs);			%	Plot the magnitude response
plot(f, abs(H)), grid on
xlabel('Frequency (Hz)')
ylabel('Magnitude ')

⌨️ 快捷键说明

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