Friday, 29 July 2016

MATLAB Programming 38 - break statement in for loop

The break Statement


The break statement terminates execution of for or while loop. Statements in the loop that appear after the break statement are not executed.


In nested loops, break exits only from the loop in which it occurs. Control passes to the statement following the end of that loop.




No comments:

Post a Comment