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

10 visualizaciones (últimos 30 días)
I am a new user in MATLAB. I can not find the solution. Please help me how to solve this!

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 17 de Nov. de 2023
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 comentarios
Fangjun Jiang
Fangjun Jiang el 28 de Nov. de 2023
It might not matter but change the first line to be
gestureType = "No Gesture" or gestureType = ""

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by