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

1 visualización (últimos 30 días)
preet
preet el 6 de Abr. de 2013
i am change my code of c language in to matlab .but its gives infinite loop in Matlab?
what is the problem?
  3 comentarios
preet
preet el 6 de Abr. de 2013
by mistake i posted it twise.

Iniciar sesión para comentar.

Respuestas (1)

per isakson
per isakson el 6 de Abr. de 2013
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

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!

Translated by