User`s guide
Upsample
5-488
•Configure the Probe blocks by deselecting the Probe width and Probe
complex signal
check boxes (if desired).
This model is multirate because there are at least two distinct frame 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
11 -11
0 0
12 -12
0 0
13 -13
0 0
14 -14
0 0
1 -1
0 0
2 -2
0 0
3 -3
0 0
4 -4
0 0
5 -5
0 0
Since we ran this frame-based multirate model in multitasking mode, the first
row of the initial condition matrix appears as output sample 2
(i.e., sample D+1, where D is the
Sample offset value). It is followed by the
other three initial condition rows, each separated by L-1 inserted rows of zeros,
where L is the
Upsample factor value of 2. The first row of the first input
matrix appears in the output as sample 10 (i.e., sample M
i
L+D+1, where M
i
is
the input frame size).