FUNCTION REFERENCE

break

Leave the innermost for or while loop.

Leave the innermost for or while loop.

Syntax

break

Example

for k = 1:5, if k == 3, break, end, end, k   % k = 3

Differences from MATLAB: Not checked against MATLAB yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.