| MATLAB Function Reference | ![]() |
Syntax
return
Description
將程式控制權移回到 invoking function 或鍵盤。也結束鍵盤模式( keyboard mode)。return
Examples
若 determinant function 是M檔案的話,可以使用 return
來處理空矩陣等特殊情況,如下例:
function d = det(A)
%DET det(A) is the determinant of A.
if isempty(A)
d = 1;
return
else
...
end
See Also
break, disp, end, error, for, if, keyboard, switch, while
| residue | rgb2hsv | ![]() |