Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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

Asked by preet

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?

3 Comments

per isakson

per isakson

on 6 Apr 2013

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

preet

preet

on 6 Apr 2013

by mistake i posted it twise.

preet

preet

Products

No products are associated with this question.

1 Answer

Answer by per isakson

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

0 Comments

per isakson

per isakson

Contact us