Complex state transition condition

2 ビュー (過去 30 日間)
Jim Clay
Jim Clay 2012 年 11 月 21 日
One of my Stateflow Chart state transitions is of the following form:
[(thing1 >= thing2) & (thing3 == thing4)]/ DoAction()
The parser complains about the "&". Is there a way to do "complicated" conditions, or do I need to put it into a function and set a variable that will be used as the switch?

採用された回答

Wilfred
Wilfred 2012 年 12 月 10 日
You should use '&&' instead of '&'. See "Flowchart patterns' in the Stateflow manual.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by