How do I break out of a FOR loop when using the FOR Iterator block in Simulink?
조회 수: 6 (최근 30일)
이전 댓글 표시
I would like to break out of a FOR loop using the FOR Iterator block.
채택된 답변
MathWorks Support Team
2009년 6월 27일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!