Filter Design Toolbox    
firnyquist

Design a Lowpass Nyquist (Lth-band) FIR filter

Syntax

Description

b = firnyquist(n,l,r) designs an Nth order, Lth band, Nyquist FIR filter with a roll-off factor r and an equiripple characteristic.

The rolloff factor r is related to the normalized transition width tw by (rad/sample). The order, n, must be even. l must be an integer greater than one. If l is not specified, it defaults to 4. r must satisfy 0< r < 1. If r is not specified, it defaults to 0.5.

b = firnyquist('minorder',l,r,dev) designs a minimum-order, Lth band Nyquist FIR filter with a rolloff factor r using the Kaiser window. The peak ripple is constrained by the scalar dev.

b = firnyquist(n,l,r,decay) designs an Nth order, Lth band, Nyquist FIR filter where the scalar decay, specifies the rate of decay in the stopband. decay must be nonnegative. If omitted or left empty, decay defaults to 0 which yields an equiripple stopband. A nonequiripple stopband 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 using the spectral factors in applications such as matched-filtering.

b = firnyquist(n,l,r,'minphase') returns the minimum-phase spectral factor bmin of order n. bmin meets the condition b=conv(bmin,bmax) so that b is an Lth band FIR Nyquist filter of order 2n with rolloff factor r. Obtain bmax, the maximum phase spectral factor by reversing the coefficients of bmin. For example, bmax = bmin(end:-1:1).

Example

Example 1: This example designs a minimum phase factor of a Nyquist filter.

Example 2: This example compares filters with different decays.

See Also
firhalfband, gremez, firminphase

firrcos, firls in your Signal Processing Toolbox documentation

References

[1]   T. Saramaki, Finite Impulse Response Filter Design, Handbook for Digital Signal Processing. S.K. Mitra and J.F. Kaiser Eds. Wiley-Interscience, N.Y., 1993, Chapter 4.


  firminphase fractionlength 

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS