DSP Blockset |
 |
Filters
The DSP Blockset Filtering library provides an extensive array of filtering blocks for analyzing, designing, and implementing filters in your models. If you prefer, you can design and analyze your filters using the Signal Processing Toolbox and Filter Design Toolbox, and then implement the filters in your model using DSP Blockset filter implementation blocks.
Three Main Filter Blocks. There are three main filtering blocks that should satisfy most of your filtering needs:
- Digital Filter Design
- For designing and analyzing filters, and then realizing the filters you designed.
- Filters singlechannel and multichannel signals.
- Simulates single- and double-precision floating-point filters
- Generates highly optimized C code suitable for use in embedded systems.
- Digital Filter
- For realizing predesigned filters, that is, filters for which you already have coefficients.
- Filters singlechannel and multichannel signals.
- Simulate single- and double-precision floating-point filters
- Generates highly optimized C code suitable for use in embedded systems.
- Filter Realization Wizard
- For implementing fixed-point filters using Sum, Gain, and Unit Delay blocks.
- You can either design and analyze the filter within the Filter Realization Wizard, or you can skip the design and analysis stage if you have a predesigned filter.
- Filters singlechannel signals
- Numerically models fixed-point filters in DSP chips, FPGAs, and ASICs. Filters single-channel signals.
All other filter blocks design or implement specialized filters such as frequency-domain filters, filter banks, and adaptive filters.
C Code Generated from Filter Blocks. The Real-Time Workshop C code generated from key filtering blocks is highly optimized for both speed and memory use, and is often suitable for use in embedded systems. For more information on generating C code from models, see Code Generation Support.
Topics Covered. The following topics summarize the capabilities of the filter blocks, and provide examples of how to use the key filter blocks:
Note
You can open many of the example models in the online version of this document by clicking indicated links or by typing specified commands at the MATLAB command line. The links for opening example models do not work in Web browsers; they work only in the MATLAB Help browser, which you can open by typing doc at the MATLAB command line.
|
| Example: Zero Tasking Latency | | Designing, Analyzing, and Implementing Filters |  |