DSP Blockset | ![]() ![]() |
Example: Importing a Frame-Based Signal. In the model below, the Signal From Workspace block creates a three-channel frame-based signal with the following data:
The frame size is four samples.
To create the model, define the following variables at the MATLAB command line.
Matrix A
represents a two-channel signal with 100 samples, and matrix B
represents a one-channel signal with 100 samples.
Specify the following parameter values in the Signal From Workspace block:
[A B]
1
4
The Signal expression [A B]
uses the standard MATLAB syntax for horizontally concatenating matrices and appends column vector B
to the right of matrix A
. Equivalently, you could set Signal = C
, and define C
at the command line by
The Sample time setting of 1
and Samples per frame setting of 4
yield a frame-based output with sample period of 1 second and frame period of 4 seconds. The Form output after final data value parameter setting specifies that all samples after the hundredth are zero.
![]() | Importing a Frame-Based Signal with the Signal From Workspace Block | Importing WAV Files | ![]() |