Design and implement digital FIR and IIR filters
Note: Use this block to design, analyze, and efficiently implement floating-point filters. The following blocks also implement digital filters, but serve slightly different purposes:
The Digital Filter Design block implements a digital FIR or IIR filter that you design using the Filter Design and Analysis Tool (fdatool) GUI. This block provides the same filter implementation as the Discrete FIR Filter or Biquad Filter blocks.
You must specify whether the block performs frame-based or sample-based processing on the input by setting the Input processing parameter. The block applies the specified filter to each channel of a discrete-time input signal, and outputs the result. The outputs of the block numerically match the outputs of the Discrete FIR Filter or Biquad Filter block, the MATLAB® filter function, and the DSP System Toolbox™ filter function.
The sampling frequency, Fs, that you specify in the FDATool GUI should be identical to the sampling frequency of the input to the Digital Filter Design block. When the sampling frequencies do not match, the Digital Filter Design block returns a warning message and inherits the sampling frequency of the input block.
Double-click the Digital Filter Design block to open FDATool. Use FDATool to design or import a digital FIR or IIR filter. To learn how to design filters with this block and FDATool, see the following topics:
You can tune the filter specifications in FDATool during simulations as long as your changes do not modify the filter length or filter order. The filter updates as soon as you apply any filter changes in FDATool.
See the Digital Filter Design Block section in the DSP System Toolbox documentation.
For more information about the parameters on this dialog, see FDATool.
|Discrete FIR Filter||DSP System Toolbox|
|Biquad Filter||DSP System Toolbox|
|Analog Filter Design||DSP System Toolbox|
|Window Function||DSP System Toolbox|
|fdatool||DSP System Toolbox|
|filter||DSP System Toolbox|
|fvtool||Signal Processing Toolbox|
|sptool||Signal Processing Toolbox|
To learn how to use this block and FDATool, see the following: