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
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
Qu Cao
Qu Cao 2017년 1월 9일
Yes, it is still valid. As of R2016b, this feature is not supported.
Robert
Robert 2020년 3월 19일
It means that in R2016b, the feature is not available.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2006a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by