TriDiagExtraction

This block extracts some elements from the input matrix u. When the quot;Extraction typequot; is set to quot;lowerquot;, it copies lower triangular elements to the output matrix of the same size. The elements below the main diagonal are set to zero. When the quot;Extraction typequot; is set to quot;upperquot;, it copies the upper triangular elements to the output matrix of the same size. The elements above the main diagonal are set to zero. When the quot;Extraction typequot; is set to quot;diagonalquot;, it copies the main diagonal elements to the output matrix of the same size. The elements above and below the main diagonal are set to zero.

    TriDiagExtraction

Library

MatrixOperations

Description

The TriDiagExtraction blocks extracts some elements from the input matrix u. When the quot;Extraction typequot; is set to quot;lowerquot;, it copies lower triangular elements to the output matrix of the same size. The elements below the main diagonal are set to zero. When the quot;Extraction typequot; is set to quot;upperquot;, it copies the upper triangular elements to the output matrix of the same size. The elements above the main diagonal are set to zero. When the quot;Extraction typequot; is set to quot;diagonalquot;, it copies the main diagonal elements to the output matrix of the same size. The elements above and below the main diagonal are set to zero.

When the "Extraction type" is set to "lower", it copies lower triangular elements to the output matrix of the same size. The elements below the main diagonal are set to zero.

When the "Extraction type" is set to "upper", it copies the upper triangular elements to the output matrix of the same size. The elements above the main diagonal are set to zero.

When the "Extraction type" is set to "diagonal", it copies the main diagonal elements to the output matrix of the same size. The elements above and below the main diagonal are set to zero.

Parameters

TriDiagExtraction_0

NameLabelDescriptionData TypeValid Values

decomptyp

Extraction type

Extraction type. Lower, Upper and Diagonal

String

'Lower'
'Upper'
'Diagonal'

externalActivation

External activation

Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

explicit

input

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no