Navigation

Operators and Keywords

Function List:

C++ API

: isargout (k)

Within a function, return a logical value indicating whether the argument k will be assigned to a variable on output.

If the result is false, the argument has been ignored during the function call through the use of the tilde (~) special output argument. Functions can use isargout to avoid performing unnecessary calculations for outputs which are unwanted.

If k is outside the range 1:max (nargout), the function returns false. k can also be an array, in which case the function works element-by-element and a logical array is returned. At the top level, isargout returns an error.

See also: nargout, varargout, nthargout.

Package: octave