diff scripts/ode/ode15s.m @ 22935:c9344df03da5

Allow case-insensitive option argument 'on' to ode solvers (bug #49918). * ode15i.m, ode15s.m: Change strcmp to strcmpi for test of odeopts 'Stats. * ode23.m, ode45.m: Change strcmp to strcmpi for tests of odeopts 'Stats' and 'NormControl'.
author Rik <rik@octave.org>
date Fri, 23 Dec 2016 09:26:16 -0800
parents c3428bb9aca9
children f2a1fc90a903
line wrap: on
line diff
--- a/scripts/ode/ode15s.m	Fri Dec 23 10:08:51 2016 +0100
+++ b/scripts/ode/ode15s.m	Fri Dec 23 09:26:16 2016 -0800
@@ -288,10 +288,7 @@
   endif
 
   ## Stats
-  options.havestats = false;
-  if (strcmp (options.Stats, "on"))
-    options.havestats = true;
-  endif
+  options.havestats = strcmpi (options.Stats, "on");
 
   ## Don't use Refine when the output is a structure
   if (nargout == 1)