| Fixed-Point Blockset | Search  Help Desk |
| FixPt Matrix Gain |
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 gain is specified with the Gain matrix value parameter.
The Parameter data type parameter can have the same values as the Output data type parameter as discussed in "Block Parameters". Additionally, if Parameter data type is a generalized fixed-point number, then you can select from these scaling modes:
Use Specified Scaling --This is the default mode; it uses the scaling from the Parameter scaling parameter.
Best Precision: Element-wise -- This mode produces radix points such that the precision is maximized for each element of the Gain matrix value matrix.
Best Precision: Row-wise -- This mode produces a common radix point for each element of a Gain matrix value row based on the best precision for the largest value of that row.
Best Precision: Column-wise -- This mode produces a common radix point for each element of a Gain matrix value column based on the best precision for the largest value of that column.
Best Precision: Matrix-wise -- This mode produces a common radix point for each element of the Gain matrix value matrix based on the best precision for the largest value of the matrix.
K. For a description of how the block icon displays the output data type, refer to "Block Icon Display".
Parameters and Dialog Box

Conversions and Operations
The Gain matrix value parameter is converted from doubles to the specified data type offline using round-to-nearest and saturation. Refer to "Parameter Conversions" in the manual for more information about parameter conversions. The FixPt Matrix Gain block first multiples its inputs by the Gain matrix value parameter, converts those results to the output data type using the specified rounding and overflow modes, and then performs the summation. Refer to "Rules for Arithmetic Operations" in the manual for more information about the rules this block adheres to when performing operations.Characteristics
| Input Ports |
Any data type supported by the blockset |
| Output Port |
Any data type supported by the blockset |
| Direct Feedthrough |
Yes |
| Sample Time |
Inherited |
| Scalar Expansion |
No |
| States |
0 |
| Vectorized |
Yes |