is 'continue' in 'c' language similar in MATLAB??

조회 수: 1 (최근 30일)
preet
preet 2013년 4월 6일
i am change my code of c language in to matlab .but its gives infinite loop in Matlab?
what is the problem?
  댓글 수: 3
preet
preet 2013년 4월 6일
by mistake i posted it twise.

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

답변 (1개)

per isakson
per isakson 2013년 4월 6일
Yes
The C continue Statement
The continue statement passes control to the next iteration of the nearest
enclosing do, for, or while statement in which it appears, bypassing any
remaining statements in the do, for, or while statement body.
Matlab
continue, Pass control to next iteration of for or while loop
However, to avoid infinite loops
break
might be what you need

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by