Issue with Integer rounding mode: Floor in Simulink

5 ビュー (過去 30 日間)
devinda Molligoda
devinda Molligoda 2019 年 1 月 24 日
コメント済み: devinda Molligoda 2019 年 1 月 29 日
Hi,
I have this disparity when using the scale block in Simulink with uint16 constants.

採用された回答

Mark McBroom
Mark McBroom 2019 年 1 月 28 日
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 件のコメント
devinda Molligoda
devinda Molligoda 2019 年 1 月 29 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArray and Matrix Mathematics についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by