User`s guide

Constant Diagonal Matrix
5-87
5Constant Diagonal Matrix
Purpose Generate a square, diagonal matrix.
Library DSP Sources,
Math Functions / Matrices and Linear Algebra / Matrix Operations
Description The Constant Diagonal Matrix block outputs a square diagonal matrix
constant. The
Constant along diagonal parameter determines the values
along the matrix diagonal. This parameter can be a scalar to be repeated for all
elements along the diagonal, or a vector containing the values of the diagonal
elements. To generate the identity matrix, set the
Constant along diagonal
to
1, or use the Identity Matrix block.
The output is frame-based when the
Frame-based output check box is
selected; otherwise, the output is sample-based.
Dialog Box
Constant(s) along diagonal
The values of the elements along the diagonal, as a scalar or vector.
Tunable.
Frame-based output
Specifies frame-based output when selected. Tunable.
MATLAB commands for casting values to certain data types are provided
parentheses: