DSP Blockset | ![]() ![]() |
Example: Chebyshev Type II Lowpass Filter. In the model below, the Sine Wave block generates two sinusoids, one at 100 Hz and 400 Hz, each with a frame size of 128 samples. The sinusoids are then summed point-by-point, and the resulting signal is passed through a lowpass IIR filter to attenuate the higher frequency sinusoid. Both signals are displayed on the scope.
To build the model, make the following settings:
10
[100 400]
0
0.001
128
8
0.5
20
This specifies a Chebyshev type II lowpass filter with a stopband edge frequency of 250 Hz, which will attenuate the sinusoid at 400 Hz but retain the sinusoid at 100 Hz. Note that half the sample frequency in this case is 500 Hz, so that the normalized Stopband edge frequency is 0.5
, as specified.
2
inf
, and start the simulation by selecting Start from the Simulation menu. Use the default setting in the Spectrum Scope block. As the simulation begins running, right-click in the plot area of the scope, and select Autoscale from the pop-up menu. You can also change the styles and colors of the plotted lines by selecting either CH 1 or CH 2 from the right-click pop-up menu.
The scope window displays both the original signal and the filtered result, which shows the expected attenuation of the 400 Hz component. Stop the simulation at any time by selecting Stop from the Simulation menu.
![]() | Discrete-Time IIR Filters | Designing Continuous-Time Classical IIR Filters | ![]() |