Complex state transition condition

2 次查看(过去 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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Stateflow 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by