wfir — linear-phase FIR filters
[wft,wfm,fr]=wfir(ftype,forder,cfreq,wtype,fpar)
string : 'lp','hp','bp','sb'
(filter type)
Filter order (pos integer)(odd for ftype='hp'
or 'sb'
)
2-vector of cutoff frequencies (0<cfreq(1),cfreq(2)<.5
) only cfreq(1)
is used when ftype='lp'
or 'hp'
Window type ('re','tr','hm','hn','kr','ch'
)
2-vector of window parameters. Kaiser window fpar(1)>0 fpar(2)=0
. Chebyshev window fpar(1)>0, fpar(2)<0
or fpar(1)<0, 0<fpar(2)<.5
time domain filter coefficients
frequency domain filter response on the grid fr
Frequency grid