MATLAB: Issue with Integer rounding mode: Floor in Simulink

rounding modesimulink

Hi,
I have this disparity when using the scale block in Simulink with uint16 constants.

Best Answer

For the gain block, what are the datatypes for Signal and Parameter? My guess is data type of Parameter is integer, so gain is getting clipped to zero.