Using Simulink     Search    Help Desk 
Matrix Gain

Multiply the input by a matrix.

Library

Math

Description

The Matrix Gain block implements a matrix gain. It generates its output by multiplying its vector input by a specified matrix

where K is the gain and u is the input.

If the specified matrix has m rows and n columns, then the input to this block should be a vector of length n. The output is a vector of length m.

The block icon always displays K.

If the matrix contains zeros, Simulink converts the matrix gain to a sparse matrix for efficient multiplication.

Data Type Support

A Matrix Gain block accepts and outputs real-valued signals of type double.

Parameters and Dialog Box

Gain matrix
The gain, specified as a matrix. The default is eye(3,3).

Characteristics

Direct Feedthrough
Yes
Sample Time
Continuous
Scalar Expansion
No
States
0
Vectorized
Yes
Zero Crossing
No



[ Previous | Help Desk | Next ]