User`s guide
Repeat
5-372
output frame period of 1 (0.25∗4). The first channel should contain the
positive ramp signal 1, 2, ..., 100, and the second channel should contain the
negative ramp signal -1, -2, ..., -100.
-
Signal = [(1:100)' (-1:-1:-100)']
- Sample time = 0.25
- Samples per frame = 4
•Configure the Repeat block to upsample the two-channel input by increasing
the output frame rate by a factor of 2 relative to the input frame rate. Set an
initial condition matrix of
-
Repetition count = 2
- Initial condition = [11 -11;12 -12;13 -13;14 -14]
- Frame-based mode = Maintain input frame size
•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 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 =
11 -11
11 -11
12 -12
12 -12
13 -13
13 -13
14 -14
11 11–
12 12–
13 13–
14 14–