📄 fir.m
字号:
function hn = fir(filttype,db,band,w0,w1)%UNTITLED1 Summary of this function goes here% Detailed explanation goes here% filttype is 0(lowpas) 1(highpass) 2(bandpass) % db is the stop-band attenuation% band is the transition band % w0 is the lp hp w0,or left side of bp.w1 is the right side of bp. [wn,d]=getwindow(0,db);len=ceil(2*pi*d/band);len=len+mod(len+1,2);if filttype==2 hdn=idealfilter(filttype,len,w0,w1);else hdn=idealfilter(filttype,len,w0);endwn=getwindow(len,db);hn=hdn.*wn';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -