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!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1542687/image.png)
回答(1 个)
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 个评论
Fangjun Jiang
2023-11-28
It might not matter but change the first line to be
gestureType = "No Gesture" or gestureType = ""
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Verification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!