<< EXTRACT Matrix operation palette MATBKSL >>

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

EXTTRI

Triangular or Diagonal Extraction

Block Screenshot

Contents

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:

Equivalent functions of EXTTRI in Scilab are triu(u), tril(u) and diag(u), respectively

Parameters

Default properties

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]

Example of diagonal extraction

Interfacing function

Computational function

See also


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