DSP Blockset    

Step 7 -- Change the Filter While the Simulation Runs.   You can change your filter parameters while the simulation runs as long as your changes do not alter the filter length or filter order; this is useful for fine-tuning your filter designs:

    1. Run the simulation (go to the Simulation menu and select Start).
    2. Double-click the Digital Filter Design block that implements the lowpass filter.
    3. Click the Magnitude Response button  to view the magnitude response of the filter.
    4. Change wpass to 0.4 and wstop to 0.6; these changes should cause the filter to filter out less of the noise than it did before.
    5. Click Design Filter at the bottom of the GUI. Notice the magnitude response plot updates in the block, as does the block's icon in the model.
    6. When you finish observing the running model, stop the simulation (select Stop from the Simulation menu). Note that the Vector Scope display shows that the lowpass filter no longer does as good a job of filtering the noise from the noisy sine wave.

  Step 6 -- Set the Vector Scope Display Colors Example: Saving, Importing, and Exporting Filters