DSP Blockset | ![]() ![]() |
Example: Using the Digital Filter Design Block to Design, Analyze, and Implement a Filter
In the following model, a lowpass filter filters out high-frequency noise from a noisy sine wave. The high-frequency noise is output by a highpass filter excited by a uniform random signal.
Digital Filter Design blocks were used to design and implement the lowpass and highpass filters. The Vector Scope's display shows the original sine wave, the noisy sine wave, and the filtered noisy sine wave for comparison.
Note You can open the following model by clicking here in the MATLAB Help browser (not in a Web browser). To build the model yourself, follow the steps below. For a review of how to create and run Simulink models, see Simulink Review. For detailed information on the Digital Filter Design block, see the Digital Filter Design block online reference page. |
Model Using the Digital Filter Design Block to Implement Filters
Vector Scope Display After Running the Model
To build the model yourself, complete the following steps:
![]() | Filter Design, Analysis, and Implementation with the Digital Filter Design Block | Step 1 -- Get Necessary Blocks | ![]() |