MATLAB Function Reference Previous page   Next Page
return

Return to invoking function

Syntax

Description

return causes a normal return to the invoking function or to the keyboard. It also terminates keyboard mode.

Examples

If the determinant function were an M-file, it might use a return statement in handling the special case of an empty matrix, as follows:

See Also

break, continue, disp, end, error, for, if, keyboard, switch, while


Previous page  rethrow rgb2hsv Next page

© 1994-2005 The MathWorks, Inc.