Unable to evaluate expression 'fimath('R​oundMode',​'floor',..​. 'OverFlowMode','wrap'... )' for fimath of block

7 ビュー (過去 30 日間)
Jinbiao
Jinbiao 2023 年 11 月 27 日
編集済み: Aiswarya 2024 年 1 月 22 日
I have a simulink file using fi function. It can run on Matalb R2020a. But, if failed to run on Matlab R2021b version.
The error message is as below
Unable to evaluate expression 'fimath('RoundMode','floor',... 'OverFlowMode','wrap'... )' for fimath of block.
Would you pls help me to fix this issue? I need to use R2021b version to develop my new project based on fi function. Thanks
  1 件のコメント
Andy Bartlett
Andy Bartlett 2023 年 11 月 29 日
Please provide simplified reproduction steps.
For example, a Simulink model saved in R202a, and any supporting files such as MATLAB m files.

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

回答 (1 件)

Aiswarya
Aiswarya 2024 年 1 月 22 日
編集済み: Aiswarya 2024 年 1 月 22 日
Hi Jinbiao,
I understand that your code which involves the 'fimath' function works fine in MATLAB R2020a but errors out in MATLAB R2021b version. The reason why this may occur is starting from R2021a, inexact property names for 'fimath' are not supported. The property for overflow in your function should be 'OverflowAction' instead of 'OverFlowMode'. You can refer to the following link for all the properties of the 'fimath' function: https://www.mathworks.com/help/fixedpoint/ref/embedded.fimath.html?searchHighlight=fimath&s_tid=srchtitle_support_results_1_fimath#mw_657a04e2-c36d-46b6-a481-0e232ff6892a

カテゴリ

Help Center および File ExchangeFixed Point についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by