# HG changeset patch # User Rik # Date 1386995148 28800 # Node ID 8ca7b1906a41506cfc1b1cc95fe595aa79549606 # Parent c7b68a11074b80b76547ea88f60f410d1333440b fzero.m: Correctly detct if OutputFcn is present (bug #40889). * fzero.m: Use isempty to check whether OutputFcn is present. diff -r c7b68a11074b -r 8ca7b1906a41 scripts/optimization/fzero.m --- 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;