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

26 vues (au cours des 30 derniers jours)
SeungHyun Lee
SeungHyun Lee le 7 Fév 2018
Commenté : hanyu le 11 Mar 2025 à 7:59
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 commentaires
Amir
Amir le 25 Fév 2024
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 le 11 Mar 2025 à 7:59
thanks,it's useful

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Simulink 함수 dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!