diff scripts/optimization/fminunc.m @ 26118:7502fce4cd3a

str2func: eliminate optional second "global" argument * ov-fcn-handle.cc (Fstr2func): Ignore second argument. Don't omit local functions in search. * NEWS: Note change. * fminbnd.m, fminunc.m, fsolve.m, fzero.m: Don't pass "global" to strfunc.
author John W. Eaton <jwe@octave.org>
date Wed, 21 Nov 2018 14:54:22 -0500
parents 6652d3823428
children 1ae11ca7dceb
line wrap: on
line diff
--- a/scripts/optimization/fminunc.m	Fri Nov 16 19:35:39 2018 -0500
+++ b/scripts/optimization/fminunc.m	Wed Nov 21 14:54:22 2018 -0500
@@ -111,7 +111,7 @@
   endif
 
   if (ischar (fcn))
-    fcn = str2func (fcn, "global");
+    fcn = str2func (fcn);
   endif
 
   xsz = size (x0);