<< EXTRACT Matrix operation palette MATBKSL >>

Scilab Help >> Xcos > palettes > Matrix operation palette > EXTTRI

EXTTRI

Triangular or Diagonal Extraction

Block Screenshot

Contents

Palette

Description

The EXTTRI block extracts some elements from the input matrix u. The size of the output matrix is the same that those of the input matrix.

When the extraction type parameter is set to:

Les fonctions équivalentes de EXTTRI dans Scilab sont respectivement triu(u), tril(u) et diag(u)

Dialog box

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


Report an issue
<< EXTRACT Matrix operation palette MATBKSL >>