Mercurial > octave-nkf
changeset 18132:8ca7b1906a41
fzero.m: Correctly detct if OutputFcn is present (bug #40889).
* fzero.m: Use isempty to check whether OutputFcn is present.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 13 Dec 2013 20:25:48 -0800 |
parents | c7b68a11074b |
children | 647d806868ee |
files | scripts/optimization/fzero.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/optimization/fzero.m Thu Dec 12 00:24:02 2013 -0500 +++ b/scripts/optimization/fzero.m Fri Dec 13 20:25:48 2013 -0800 @@ -302,7 +302,7 @@ endif ## If there's an output function, use it now. - if (outfcn) + if (! isempty (outfcn)) optv.funccount = nfev; optv.fval = fval; optv.iteration = niter;