How do I break out of a FOR loop when using the FOR Iterator block in Simulink?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 27 Juin 2009
Commenté : Robert
le 19 Mar 2020
I would like to break out of a FOR loop using the FOR Iterator block.
Réponse acceptée
MathWorks Support Team
le 27 Juin 2009
The ability to break out of a FOR loop when using the FOR Iterator block is not available in Simulink.
As a workaround, use the attached example. This model stores the state of the FOR Iterator and breaks out of it when a condition is satisfied.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!