Terminate execution of for or while loop - MATLAB break
This MATLAB function terminates the execution of a for or while loop. ... break terminates the execution of a for or while loop. Statements in the loop after the break statement do not execute. In nested loops, break exits only from the loop in which it o...