while
Programming
Execute a block of statements repeatedly as long as the condition is true (nonzero). Use break to exit early. Beware of infinite loops.
Syntax
while condition ... end
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab