Logo Background

return

  • Written by matlabtutorialsmatlabtutorials No Comments Comments
    Last Updated: March 6, 2008

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

    Normally functions when the end of the function is reached.
    A statement can be used to force an early .

    Example

    1
    2
    3
    4
    5
    6
    7
    
    function d = det(A)
    if isempty(A)
    d = 1;
    return
    else
    ...
    end

    See also function, keyboard.