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

📄 fird1.m

📁 里面囊括了基于matlab滤波器设计的各种.m文件
💻 M
字号:
 
% FIRD1
% FIR filter design
%
% h = fird1(order,passedge)
% It combines the function "fir1" and
% "freqplot". Order is the FIR filter
% order, that is usually the length 
% of the filter minus 1. Passedge is
% the cut-off frequency, its value must
% be between 0 < passedge < 1.0, with 1.0 
% corresponding to half the sample rate.
% h is low-pass filter except that passedge
% is [w1,w2], which means h is a band-pass
% filter; [w1,w2] means passband. Always
% use hanning window.
%

function h = fird1(order,passedge)

 h = fir1(order,passedge,hanning(order+1));
 h = h(:);

 freqplot(h,1,'b');
 title('Frequency Response');

% subplot(2,1,1)
% freqplot(h,1,'m');
% title('Frequency Response');

% subplot(2,1,2)
% dplot(h,'y')
% title('Impulse Response');

% END

⌨️ 快捷键说明

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