DSP Blockset Previous page   Next Page

Part 3 -- Building a Model to Filter a Signal

In this section of the tutorial, you will build and run a model with the filter you just designed, in order to filter the noise from your signal.

  1. Connect a Signal From Workspace block from the DSP Sources library to the input port of your filter block.
  2. Connect a Signal To Workspace block from the DSP Sinks library to the output port of your filter block. Your model should now appear as follows.

  3. Change the Signal parameter of the Signal From Workspace block to u by double-clicking on the block.

  4. Click the OK button.
  5. Open the Simulation Parameters dialog box from the Simulation menu. In the Solver tab of the dialog, set the following fields:

  1. The Simulation Parameters dialog box should now appear as follows.

  1. Click the OK button.
  2. Run the model.

  1. If you have Port data types selected in the Format menu, you can see that a signal of type double is entering your Filter block, and a signal of type sfix16_En15 is exiting your Filter block.


Previous page  Part 2 -- Creating a Fixed-Point Filter with the Filter Realization Wizard Part 4 -- Looking at Filtering Results 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