User`s guide
FIR Decimation
5-197
The filter coefficient vector generated by fir1(3,0.25) is
[0.0386 0.4614 0.4614 0.0386]
or, equivalently,
•Configure the Probe blocks by deselecting the 
Probe width, Probe complex 
signal
, and Probe signal dimensions check boxes (if desired).
This model is multirate because there are at least two distinct sample rates, as 
shown by the two Probe blocks. To run this model in Simulink’s multitasking 
mode, select 
Fixed-step and discrete from the Type controls in the Solver 
panel of the 
Simulation Parameters dialog box, and select MultiTasking from 
the 
Mode parameter. Also set the Stop time to 30.
Run the model and look at the output, 
yout. The first few samples of each 
channel are shown below.
yout =
 0 0
 0 0
 0 0
 0 0
 0.0386 -0.0386
 1.5000 -1.5000
 3.5000 -3.5000
 5.5000 -5.5000
 7.5000 -7.5000
 9.5000 -9.5000
 11.5000 -11.5000
Since we ran this frame-based multirate model in multitasking mode, the first 
four (M
i
) output rows are zero. The first filtered input matrix row appears in 
the output as sample 5 (i.e., sample M
i
+1).
Example 2
The dspmrf_menu demo illustrates the use of the FIR Decimation block in a 
number of multistage multirate filters.
Hz() Bz() 0.0386 0.04614z
1–
0.04614z
2–
0.0386z
3–
+++==










