| Using Simulink | Search  Help Desk |
| Matrix Gain |
Multiply the input by a matrix.
Library
MathDescription
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 typedouble.
Parameters and Dialog Box

eye(3,3).Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Continuous |
| Scalar Expansion |
No |
| States |
0 |
| Vectorized |
Yes |
| Zero Crossing |
No |