FUNCTION REFERENCE
return
Stop the running function or script.
Stop the running function or script.
Syntax
returnIn a function it returns to the caller. In a script it ends the run.
Example
for k = 1:3, if k == 2, return, end, disp(k), end % prints: 1, then stopsDifferences 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.