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

TypeNameDefaultDescription
Real[:,:]K[1, 0; 0, 1]Gain matrix which is multiplied with the input

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nin]uInput to be multiplied with the gain matrix
Buildings.Controls.OBC.CDL.Interfaces.RealOutput[nout]yProduct 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.