The hasChangedTo function in a stateflow chart applied to a boolean
Show older comments
Hi everyone, I would like to know if the hasChangedTo function can be applied to a stateflow data of type boolean (i.e logical). And if so, is the syntax example here correct:
hasChangedTo(scl,'true'), where scl is of type boolean.
Thank you very much for your precious help.
Answers (1)
Muthukumar Ganesan
on 27 Jul 2022
0 votes
Hi,
Yes we can use it, this is the syntax hasChangedTo(scl,true).
Thanks.
Categories
Find more on Syntax for States and Transitions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!