Asked by preet
on 6 Apr 2013

i am change my code of c language in to matlab .but its gives infinite loop in Matlab?

what is the problem?

*No products are associated with this question.*

Answer by per isakson
on 6 Apr 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

Opportunities for recent engineering grads.

## 3 Comments

## per isakson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/70087#comment_141565

Identical to is 'continue' in 'c' language similar in MATLAB?? posted an hour earlier

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/70087#comment_141572

duplicates http://www.mathworks.co.uk/matlabcentral/answers/70081-is-continue-in-c-language-similar-in-matlab

## preet (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/70087#comment_141573

by mistake i posted it twise.