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?

 Respuesta aceptada

Wilfred
Wilfred el 10 de Dic. de 2012

2 votos

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

Más respuestas (0)

Categorías

Más información sobre Stateflow en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 21 de Nov. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by