changeset 29308:cb9add260b2b

maint: merge stable to default.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 18 Jan 2021 17:08:14 +0900
parents 1ece396fe3df (current diff) a121ce5a515f (diff)
children 01679f865fc7
files scripts/optimization/fminbnd.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/optimization/fminbnd.m	Sun Jan 17 13:09:04 2021 +0100
+++ b/scripts/optimization/fminbnd.m	Mon Jan 18 17:08:14 2021 +0900
@@ -234,7 +234,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;