changeset 8615:7baacb6a8a65

fix typo in fsolve
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 28 Jan 2009 11:00:22 +0100
parents 5114ea5a41b5
children 3d75d717cbe0
files scripts/optimization/fsolve.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/optimization/fsolve.m	Wed Jan 28 09:33:27 2009 +0100
+++ b/scripts/optimization/fsolve.m	Wed Jan 28 11:00:22 2009 +0100
@@ -277,7 +277,7 @@
       endif
 
       ## FIXME: should outputfcn be only called after a successful iteration?
-      if (outfcn)
+      if (! isempty (outfcn))
         optimvalues.iter = niter;
         optimvalues.funccount = nfev;
         optimvalues.fval = fn;