ERROR : "Expected a value representable in the C type 'int'. Found 108301 instead."

11 ビュー (過去 30 日間)
SeungHyun Lee
SeungHyun Lee 2018 年 2 月 7 日
コメント済み: hanyu 2025 年 3 月 11 日
I'm using MATLAB function blocks in Simulink. but there were some errors about data type. I can't understand the error messages. what made this error?
<<
>>
  6 件のコメント
Amir
Amir 2024 年 2 月 25 日
I have had the same problem in simulink recently. The error is due to indexing an array with a variable that isn't an intiger. For example, you may have used Tau_Plaus = tk(j+1) in one of your blocks where j is 1.00000. I would fix this problem by using tk(round(j+1)).
hanyu
hanyu 2025 年 3 月 11 日
thanks,it's useful

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

回答 (1 件)

Andrew Sol
Andrew Sol 2019 年 5 月 1 日
You may try use block "Data Type Conversion", and convert input signal for MATLAB Fcn Block to uint8.

カテゴリ

Help Center および File ExchangeSimulink 함수 についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!