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)).

댓글을 달려면 로그인하십시오.

답변 (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 CenterFile Exchange에서 Simulink 함수에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!