Complex state transition condition

2 Ansichten (letzte 30 Tage)
Jim Clay
Jim Clay am 21 Nov. 2012
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by