MATLAB Answers

0

Issue with Integer rounding mode: Floor in Simulink

Asked by devinda Molligoda on 24 Jan 2019
Latest activity Commented on by devinda Molligoda on 29 Jan 2019
Hi,
I have this disparity when using the scale block in Simulink with uint16 constants.

  0 Comments

Sign in to comment.

Products


Release

R2018b

1 Answer

Answer by Mark McBroom on 28 Jan 2019
 Accepted 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.

  1 Comment

Thanks Mark,
I was thinking the problem is in the devision operation, but as you mentioned the gain block with uint16 may not hold a non integer value as the gain.
BR,
Devinda

Sign in to comment.