MatrixGain
Output the product of a gain matrix with the input signal vector
Library
Modelica/Blocks/Math
Description
This blocks computes output vector y as product of thegain matrix K with the input signal vector u:
y = K * u;
Example:
parameter: K = [0.12 2; 3 1.5] results in the following equations: | y[1] | | 0.12 2.00 | | u[1] | | | = | | * | | | y[2] | | 3.00 1.50 | | u[2] |
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_K | K | Gain matrix which is multiplied with the input | Matrix | |
mo_nin | nin | Number of inputs | Scalar | |
mo_nout | nout | Number of outputs | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signals | input | 1 |
y | implicit | Connector of Real output signals | output | 1 |