MATDET Matrix operation palette MATDIV

Manual Scilab >> xcos > palettes > Matrix operation palette > MATDIAG

MATDIAG

Create Diagonal Matrix

Block Screenshot

Contents

Palette

Description

The MATDIAG block create a diagonal matrix from a 1D vector. If the input is a M-by-1 vector than the output is an M-by-M matrix.

Dialog box

Example

if the input of the block is U=ones(5,1) then the output is:
y=[1 0 0 0 0;0 1 0 0 0;0 0 1 0 0;0 0 0 1 0;0 0 0 0 1]

Default properties

Interfacing function

Computational function

See also

Authors

Fady NASSIF - INRIA

MATDET Matrix operation palette MATDIV