MatrixGain

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

    MatrixGain

Library

Modelica/Blocks/Math

Description

This blocks computes output vector y as product of thegain 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__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signals

input

1

y

implicit

Connector of Real output signals

output

1