DSP Blockset | ![]() ![]() |
Example: Rate Conversion by Frame-Size Adjustment. The model from Example: Rate Conversion by Frame-Rate Adjustment is shown again below, but this time with the rate conversion implemented by adjusting the frame size, rather than the frame rate.
As before, the frame rate of the original signal is 1 second (0.125*8), shown by the first Probe block. Now the Downsample block is configured to downsample the signal by changing the frame size rather than the frame rate. The dialog box with this setting is shown below.
The line width display on the Downsample output port verifies that the downsampled output has a frame size of 4, half that of the input. As a result, the sequence sample period is doubled to 0.25 second without any change to the frame rate.
![]() | Example: Rate Conversion by Frame-Rate Adjustment | Frame Rebuffering | ![]() |