| DSP Blockset | ![]() |
Implementing a Lowpass Filter
The Digital Filter block, in the DSP Blockset Filter Designs library, is useful for implementing a digital FIR or IIR filter. In this example, you create a lowpass filter using the Digital Filter block.
To learn how to create a highpass filter, see Implementing a Highpass Filter. To design and implement a new filter, see Digital Filter Design Block:
lopassNum = [-0.0021 -0.0108 -0.0274 -0.0409 -0.0266 0.0374 0.1435 0.2465 0.2896 0.2465 0.1435 0.0374 -0.0266 -0.0409 -0.0274 -0.0108 -0.0021]
You could have calculated these values using
[N Fo Ao W] = remezord([0.2 0.5],[1 0], ... [5.750112778453722e-002,1.000000000000001e-004]); lopassNum = remez(N,Fo,Ao,W,{16});
lopassNum as described in the Importing and Exporting Quantized Filters section of the Filter Design Toolbox documentation.
The Digital Filter block in your model now represents a lowpass filter.
| Digital Filter Block | Implementing a Highpass Filter | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |