Scicos Block
fr - eng


EXTTRI: Triangular or Diagonal extraction

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

Contents

Palette

Description

The EXTTRI block extracts some elements from the input matrix u.
When the "Extraction type" is set to "1", the block copies the elements on and above the main diagonal to an output matrix of the same size. The elements below the main diagonal are set to zero.
When the "Extraction type" is set to "2", the block copies the elements on and below the main diagonal to an output matrix of the same size. The elements above the main diagonal are set to zero.
When the "Extraction type" is set to "3", the block copies the elements on the main diagonal to an output matrix of the same size. The elements above and below the main diagonal are set to zero.

Dialog box

\begin{figure}\begin{center}
\epsfig{file=EXTTRI_gui.eps,width=350pt}
\end{center}\end{figure}

Example

A=[1 2 3;4 5 6;7 8 9;10 11 12]
If the extraction type is 2 then the output is
B=[1 0 0;4 5 0;7 8 9;10 11 12]

Default properties

Interfacing function

Computational function

See also

Authors

Fady NASSIF INRIA