help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] how to make a function perform differently depending on out


From: Nir Krakauer
Subject: Re: [newbie] how to make a function perform differently depending on output asked for
Date: Mon, 8 Dec 2014 13:38:34 -0500

if nargout > 1
[do something]
endif

or
if isargout(3)
[ ]
endif

cf. https://www.gnu.org/software/octave/doc/interpreter/Multiple-Return-Values.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]