blockMatrixGain

Output the product of a gain matrix with the input signal vector

Extends from Interfaces.MIMO (Multiple Input Multiple Output continuous control block).

Information

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

TypeNameDefaultDescription
Real[:,:]K[1, 0; 0, 1]Gain matrix which is multiplied with the input
Integernin (from MIMO)1Number of inputs
Integernout (from MIMO)1Number of outputs

Connectors

TypeNameDefaultDescription
RealInput[nin]u (from MIMO)Connector of Real input signals
RealOutput[nout]y (from MIMO)Connector of Real output signals