User`s guide

3 Working with Signals
3-34
“Creating Signals Using the Signal From Workspace Block” on page 3-38
For information about importing signals, see the following sections:
“Importing a Multichannel Sample-Based Signal” on page 3-62
“Importing a Multichannel Frame-Based Signal” on page 3-68
Example: Creating Signals with the DSP Constant Block
The DSP Constant block has the following parameters:
Constant value
Interpret vector parameters as 1-D
Sample mode
Sample time
Frame-based output
To generate a constant matrix signal, simply enter the desired matrix in the
Constant value parameter using standard MATLAB notation. Some common
examples of MATLAB’s matrix notation are shown below.
[1 2 3;4 5 6] % A 2-by-3 matrix
[1 2 3;4 5 6]' % The transpose, a 3-by-2 matrix
randn(2,3) % A 2-by-3 matrix with random elements
[1 2 3] % A 1-by-3 row vector
[1 2 3]' % The transpose, a 3-by-1 column vector
As with all numerical parameters, you can also enter any valid MATLAB
variable or expression that evaluates to a matrix. See the MATLAB
documentation for a thorough introduction to constructing and indexing
matrices.
The
Interpret vector parameters as 1-D and Frame-based output
parameters are discussed following the example below. See the DSP Constant
block’s reference page for information about the
Sample mode and Sample
time
parameters.
The model below shows five DSP Constant blocks, each generating one of the
constant signals listed above. Two of the blocks have non-default settings for
the other parameters: The third block (DSP Constant2) has the
Frame-based