How to go to an initial step in a running function?

조회 수: 2 (최근 30일)
Antonio Trujillo-Ortiz
Antonio Trujillo-Ortiz 2014년 4월 7일
댓글: dpb 2014년 4월 7일
Hi all,
I need some hint to this. Suppose you are running a Matlab function and in some forward point, partial results must to be checking. If they pass a constraint can proceed, otherwise it is necessary going to some initial step.
Any help are welcome. Thx.
Antonio
  댓글 수: 1
dpb
dpb 2014년 4월 7일
You'll have to enclose the necessary code section in a loop of some sort such that it repeats when needed.
Look at
doc continue
doc break
as possible help in a for or while loop; another alternative might be to enclose the code in a catch...try block
More specifics would likely help to refine a response...

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by