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 the gain 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_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of vectors | true | |
mo_u/start | start | Cell of vectors | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of vectors | true | |
mo_y/start | start | Cell of vectors |
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 |