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 ExchangeStateflow についてさらに検索

質問済み:

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