MatrixGain

This block computes the matrix product of the block Gain parameter with the block input. A block parameter specifies whether the product is a left, right or element-wise multiplication. The inputs and the outputs must have the same datatype. In case of integer datatypes, a block parameter specifies the behavior of the block on overflow.

    MatrixGain

Library

Activate/MatrixOperations

Description

The MatrixGain block computes the product of a matrix Gain by the input matrix u1, where the number of rows/cols of Gain is compatible with the size of u1.

The input/output datatype is defined by the type of the matrix Gain. It can take all the datatype.

Parameters

MatrixGain_0

NameLabelDescriptionData TypeValid Values

gain

Gain

This parameter defines the matrix Gain. That parameter can support all data types.

Matrix

overflow

Do on overflow

Defines the action in case of an overflow during the operation. Options are : "Nothing" (gives a normal, non satured result), "Saturate" (gives a saturated result), "Error" (gives an error message).

String

'Nothing'
'Saturate'
'Error'

mulmethod

Multiplication method

Defines how the matrix multiplication is performed. In the other words, it specifies whether the product is a left, right or element-wise multiplication.
Gain*u1
u1*Gain
Gain.*u1

String

'Gain*u1'
'u1*Gain'
'Gain.*u1'

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

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

Yes. Unless the norm value of the gain is zero

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also