Sunday, 31 July 2016

MATLAB Programming 40 - continue statement in while loop

The continue Statement


The continue statement is used for passing control to next iteration of for or while loop.

The continue statement in MATLAB works somewhat like the break statement. Instead of forcing termination, however, 'continue' forces the next iteration of the loop to take place, skipping any code in between.


No comments:

Post a Comment