Complex state transition condition
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Wilfred
le 10 Déc 2012
You should use '&&' instead of '&'. See "Flowchart patterns' in the Stateflow manual.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Stateflow dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!