Scicos Block
fr - eng


MATDIAG Create Diagonal Matrix

\epsfig{file=MATDIAG.eps,height=90pt}

Contents

Palette

Description

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

Dialog box

\begin{figure}\begin{center}
\epsfig{file=MATDIAG_gui.eps,width=300pt}
\end{center}\end{figure}

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