Digital FIR Filter Design (Obsolete) - Design and implement a variety of FIR filters

Library

dspobslib

Description

The Digital FIR Filter Design block designs a discrete-time (digital) FIR filter in one of several different band configurations using a window method. Most of these filters are designed using the Signal Processing Toolbox fir1 function, and are real with linear phase response. The block applies the filter to a discrete-time input using the Direct-Form II Transpose Filter (Obsolete) block.

An M-by-N sample-based matrix input is treated as M*N independent channels, and an M-by-N frame-based matrix input is treated as N independent channels. In both cases, the block filters each channel independently over time, and the output has the same size and frame status as the input.

For complete details on the classical FIR filter design algorithm, see the description of the fir1 and fir2 functions in the Signal Processing Toolbox documentation.

Band Configurations

The band configuration for the filter is set from the Filter type pop-up menu. The band configuration parameters below this pop-up menu adapt appropriately to match the Filter type selection.

The Window type parameter allows you to select from a variety of different windows. See the Window Function block reference for a complete description of the available options.

Dialog Box

The parameters displayed in the dialog box vary for different design/band combinations. Only some of the parameters listed below are visible in the dialog box at any one time.

Filter type

The type of filter to design: Lowpass, Highpass, Bandpass, Bandstop, Multiband, or Arbitrary Shape. Tunable.

Filter order

The order of the filter. The filter length is one more than this value. For the Bandpass and Bandstop configurations, the order of the final filter is twice this value.

Cutoff frequency

The normalized cutoff frequency for the Highpass and Lowpass filter configurations. A value of 1 specifies half the sample frequency. Tunable.

Lower cutoff frequency

The lower passband or stopband frequency for the Bandpass and Bandstop filter configurations. A value of 1 specifies half the sample frequency. Tunable.

Upper cutoff frequency

The upper passband or stopband frequency for the Bandpass and Bandstop filter configurations. A value of 1 specifies half the sample frequency. Tunable.

Cutoff frequency vector

A vector of ascending frequency points defining the cutoff edges for the Multiband filter. A value of 1 specifies half the sample frequency. Tunable.

Gain in the first band

The gain in the first band of the Multiband filter: 0 specifies a stopband, 1 specifies a passband. Additional bands alternate between passband and stopband. Tunable.

Frequency vector

A vector of ascending frequency points defining the frequency bands of the Arbitrary shape filter. The frequency range is 0 to 1 including the endpoints, where 1 corresponds to half the sample frequency. Tunable.

Gains at these frequencies

A vector containing the desired magnitude response for the Arbitrary shape filter at the corresponding points in the Frequency vector. Tunable.

Window type

The type of window to apply. See the Window Function block reference. Tunable.

Stopband ripple

The level (dB) of stopband ripple, Rs, for the Chebyshev window. Tunable.

Beta

The Kaiser window β parameter. Increasing Beta widens the mainlobe and decreases the amplitude of the window sidelobes in the window's frequency magnitude response. Tunable.

References

Antoniou, A. Digital Filters: Analysis, Design, and Applications. 2nd ed. New York, NY: McGraw-Hill, 1993.

Oppenheim, A. V. and R. W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 1989.

Proakis, J. and D. Manolakis. Digital Signal Processing. 3rd ed. Englewood Cliffs, NJ: Prentice-Hall, 1996.

  


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