firnyquist
Lowpass Nyquist (Lth-band) FIR filter
Syntax
b = firnyquist(n,l,r)
b = firnyquist('minorder',l,r,dev)
b = firnyquist(n,l,r,decay)
b = firnyquist(n,l,r,'nonnegative')
b = firnyquist(n,l,r,'minphase')
Description
b = firnyquist(n,l,r)
designs an Nth order, Lth band, Nyquist FIR filter with a rolloff factorr
and an equiripple characteristic.
滚边的因素r
is related to the normalized transition widthtw
bytw=2π(r/l)(rad/sample). The order,n
, must be even.l
must be an integer greater than one. Ifl
is not specified, it defaults to4
.r
must satisfy0< r < 1
. Ifr
is not specified, it defaults to0.5
.
b = firnyquist('minorder',l,r,dev)
designs a minimum-order, Lth band Nyquist FIR filter with a rolloff factorr
using the Kaiser window. The peak ripple is constrained by the scalardev
.
b = firnyquist(n,l,r,decay)
designs an Nth order (n
), Lth band (l
), Nyquist FIR filter where the scalardecay
, specifies the rate of decay in the stopband.decay
must be nonnegative. If you omit or leave it empty,decay
defaults to0
which yields an equiripple stopband.A
nonequiripple stopband (decay
≠0) may be desirable for decimation purposes.
b = firnyquist(n,l,r,'nonnegative')
returns an FIR filter with nonnegative zero-phase response. This filter can be spectrally factored into minimum-phase and maximum-phase “square-root” filters. This allows you to use the spectral factors in applications such as matched-filtering.
b = firnyquist(n,l,r,'minphase')
returns the minimum-phase spectral factorbmin
of ordern
.bmin
meets the conditionb=
conv
(bmin,bmax)
so thatb
is an Lth band FIR Nyquist filter of order 2n with filter rolloff factorr
. Obtainbmax
, the maximum phase spectral factor by reversing the coefficients ofbmin
. For example,bmax = bmin(end:-1:1)
.
Examples
References
T. Saramaki, Finite Impulse Response Filter Design,Handbook for Digital Signal Processing, Mitra, S.K. and J.F. Kaiser Eds. Wiley-Interscience, N.Y., 1993, Chapter 4.