DSP Blockset Previous page   Next Page

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:

  1. Define the highpass filter coefficients in the MATLAB workspace by typing

  1. 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

  1. Open Simulink and create a new model file.

  1. If you completed the procedure in Implementing a Lowpass Filter, you can continue to use your the same model file.

  1. In the Simulink Model browser, double-click DSP Blockset.
  2. Double-click Filtering, and select the Filter Designs library.
  3. Click-and-drag a Digital Filter block into your model.
  4. Double-click the Digital Filter block.

  1. The Block Parameters: Digital Filter dialog box opens.

  1. Set the parameters to the values shown below.

  1. Note that you can provide the filter coefficients in several ways:

  1. Click OK.

The Digital Filter block in your model now represents a highpass filter.


Previous page  Implementing a Lowpass Filter Filtering High-Frequency Noise Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS