Data 'gestureType': Character outputs are not supported in Simulink and Stateflow. Cast 'gestureType' to int8 or uint8 instead.

10 次查看(过去 30 天)
I am a new user in MATLAB. I can not find the solution. Please help me how to solve this!

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2023-11-17
MATLAB Function block does not support 'char' data type, so you can't write y='abc' for example.
But since R2019b, it supports 'string' data type, so you can write y="abc".
Most likely, making the above change should resolve the problem.
  6 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Model Verification 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by