DSP Blockset    
Constant Diagonal Matrix

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.

See Also

Create Diagonal Matrix
DSP Blockset
DSP Constant
DSP Blockset
Identity Matrix
DSP Blockset
diag
MATLAB

See Creating Signals Using Constant Blocks for related information.


 Complex Exponential Constant Ramp