ffilt — coefficients of FIR low-pass
[x]=ffilt(ft,n,fl,fh)
filter type where ft
can take the values
for low-pass filter
for high-pass filter
for band-pass filter
for stop-band filter
integer (number of filter samples desired)
real (low frequency cut-off)
real (high frequency cut-off)
vector of filter coefficients
Get n
coefficients of a FIR low-pass,
high-pass, band-pass, or stop-band filter.
For low and high-pass filters one cut-off
frequency must be specified whose value is
given in fl
. For band-pass and stop-band
filters two cut-off frequencies must be
specified for which the lower value is in
fl
and the higher value is in fh