The hasChangedTo function in a stateflow chart applied to a boolean

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.

Respuestas (1)

Hi,
Yes we can use it, this is the syntax hasChangedTo(scl,true).
Thanks.

Categorías

Más información sobre Stateflow en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Dic. de 2018

Respondida:

el 27 de Jul. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by