How do I break out of a FOR loop when using the FOR Iterator block in Simulink?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 27 de Jun. de 2009
Comentada: Robert
el 19 de Mzo. de 2020
I would like to break out of a FOR loop using the FOR Iterator block.
Respuesta aceptada
MathWorks Support Team
el 27 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!