DSP Blockset
  Go to block:
    Search    Help Desk 
Create Diagonal Matrix    See Also

Create a matrix from a vector diagonal.

Library

Matrix Functions, in Math Functions

Description

The Create Diagonal Matrix block creates a square matrix from the diagonal specified by the vector input. The elements of the length-M input vector are used to populate the diagonal of an M-by-M matrix output. The elements off the diagonal are zero. A matrix input, u, is treated as a vector, u(:).

Note
If you expect to generate code for the Create Diagonal Matrix block using the Real-Time Workshop, you should ensure that inputs are contiguous in memory. See the Contiguous Copy block for more information.

Dialog Box

See Also

Constant Diagonal Matrix
Extract Diagonal


[ Previous | Help Desk | Next ]