| MATLAB Function Reference | ![]() |
return
return causes a normal return to the invoking function or to the keyboard. It also terminates keyboard mode.
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:
function d = det(A)
%DET det(A) is the determinant of A.
if isempty(A)
d = 1;
return
else
...
endbreak, continue, disp, end, error, for, if, keyboard, switch, while
![]() | rethrow (MException) | rgb2hsv | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |