MatrixGain

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

    MatrixGain

Library

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

MatrixGain_0

NameLabelDescriptionData TypeValid 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

MatrixGain_1

NameLabelDescriptionData TypeValid Values

mo_u

u

u

Structure

mo_u/fixed

fixed

Cell of vectors

true
false

mo_u/start

start

Cell of vectors

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of vectors

true
false

mo_y/start

start

Cell of vectors

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signals

input

1

y

implicit

Connector of Real output signals

output

1