User`s guide

Downsample
5-145
Adjust the block parameters as follows:
Configure the Signal From Workspace block to generate a two-channel
signal with frame size of 4 and sample period of 0.25 seconds. This
represents an output frame period of 1 second (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. The settings are:
-
Signal = [(1:100)' (-1:-1:-100)']
- Sample time = 0.25
- Samples per frame = 4
Configure the Downsample block to downsample the two-channel input by
decreasing the output frame rate by a factor of 2 relative to the input frame
rate. Set a sample offset of 1, and a 4-by-2 initial condition matrix of
-
Downsample factor = 2
- Sample offset = 1
- 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 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
11 11
12 12
13 13
14 14