Complex state transition condition

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일

2 개 추천

You should use '&&' instead of '&'. See "Flowchart patterns' in the Stateflow manual.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Stateflow에 대해 자세히 알아보기

제품

태그

질문:

2012년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by