| DSP Blockset | ![]() |
Implementing a Highpass Filter
In the previous topic, Implementing a Lowpass Filter, you learned how to create a lowpass filter. Now, create a highpass filter using the Digital Filter block:
highpassNum = [-0.0051 0.0181 -0.0069 -0.0283 -0.0061 0.0549 0.0579 -0.0826 -0.2992 0.5946 -0.2992 -0.0826 0.0579 0.0549 -0.0061 -0.0283 -0.0069 0.0181 -0.0051];
You could have calculated these values using
[N Fo Ao W] = remezord([0.2 0.5],[0 1], ... [1.000000000000001e-004 5.750112778453722e-002]); hipassNum = remez(N,Fo,Ao,W,{16});
highpassNum 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 highpass filter.
| Implementing a Lowpass Filter | Filtering High-Frequency Noise | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |