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.

답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 7월 27일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Syntax for States and Transitions에 대해 자세히 알아보기

질문:

2018년 12월 19일

답변:

2022년 7월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by