DSP Blockset    
Create Diagonal Matrix

Create a square diagonal matrix from diagonal elements.

Library

Math Functions / Matrices and Linear Algebra / Matrix Operations

Description

The Create Diagonal Matrix block populates the diagonal of the M-by-M matrix output with the elements contained in the length-M vector input, D. The elements off the diagonal are zero.

The output is always sample-based.

Dialog Box

Supported Data Types

To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.

See Also

Constant Diagonal Matrix
DSP Blockset
Extract Diagonal
DSP Blockset
diag
MATLAB

Also see Matrix Operations for a list of all the blocks in the Matrix Operations library.


  Covariance Method Cumulative Product