MATLAB Answers

Can't set data type to string in a Stateflow chart

1 view (last 30 days)
Olivier NEYRET
Olivier NEYRET on 22 Apr 2021
Answered: Ntiana Sakioti on 1 Jul 2021
Hello, I am working on a Stateflow project and I want to use a string datatype on a variable. I saw that the chart had to have its action language to C but even with this I can't set the datatype of my variable to string.
  11 Comments

Sign in to comment.

Answers (1)

Ntiana Sakioti
Ntiana Sakioti on 1 Jul 2021
Hi Olivier,
If I understand correctly you are trying to create a "string" variable in a Stateflow chart in R2016b. Please note that Stateflow did not support string datatypes until R2018bd. If you are able to I would suggest updating to a newer release in order to utilize this functionality.

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by