Complex state transition condition
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Wilfred
il 10 Dic 2012
You should use '&&' instead of '&'. See "Flowchart patterns' in the Stateflow manual.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Complex Logic in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!