DSP Blockset | ![]() ![]() |
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
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 | ![]() |