Complex state transition condition
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
Wilfred
2012년 12월 10일
You should use '&&' instead of '&'. See "Flowchart patterns' in the Stateflow manual.
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!