The hasChangedTo function in a stateflow chart applied to a boolean

5 vues (au cours des 30 derniers jours)
imane RGUIB
imane RGUIB le 19 Déc 2018
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.

Réponses (1)

Muthukumar Ganesan
Muthukumar Ganesan le 27 Juil 2022
Hi,
Yes we can use it, this is the syntax hasChangedTo(scl,true).
Thanks.

Catégories

En savoir plus sur Syntax for States and Transitions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by