# return

## Purpose

Return to the invoking function.

## Synopsis

    return

## Description

`return` causes a normal return to the invoking function or to the keyboard.

## 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:

    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, while

(c) Copyright 1994 by The MathWorks, Inc.