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 CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by