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
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,:] | K | [1, 0; 0, 1] | Gain matrix which is multiplied with the input |
| Integer | nin (from MIMO) | 1 | Number of inputs |
| Integer | nout (from MIMO) | 1 | Number of outputs |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput[nin] | u (from MIMO) | Connector of Real input signals | |
| RealOutput[nout] | y (from MIMO) | Connector of Real output signals |