blockMatrixGain
Output the product of a gain matrix with the input signal vector
Information
This blocks computes output vector y as the product of the gain matrix K with the input signal vector u as y = K u. For example,
parameter Real K[:,:] = [0.12, 2; 3, 1.5];
results in
| y[1] | | 0.12, 2.00 | | u[1] |
| | = | | * | |
| y[2] | | 3.00, 1.50 | | u[2] |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | K | [1, 0; 0, 1] | Gain matrix which is multiplied with the input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput[nin] | u | Input to be multiplied with the gain matrix | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nout] | y | Product of gain matrix times the input |
Revisions
-
February 15, 2024, by Michael Wetter:
Updated documentation to have valid syntax. -
February 11, 2019, by Milica Grahovac:
First implementation, based on the implementation of the Modelica Standard Library.