diff scripts/ode/odeset.m @ 20937:3b2cc6ef0624

use numfields (x) instead of numel (fieldnames (x)) * inputParser.m, fileattrib.m, odeset.m: Use numfields (x) instead of numel (fieldnames (x)).
author John W. Eaton <jwe@octave.org>
date Fri, 18 Dec 2015 15:55:36 -0500
parents 8d82da0f3439
children 429f83903400
line wrap: on
line diff
--- a/scripts/ode/odeset.m	Wed Dec 16 21:13:47 2015 -0500
+++ b/scripts/ode/odeset.m	Fri Dec 18 15:55:36 2015 -0500
@@ -269,7 +269,7 @@
 %!xtest
 %! odeoptA = odeset ();
 %! assert (isstruct (odeoptA));
-%! assert (numel (fieldnames (odeoptA)), 23);
+%! assert (numfields (odeoptA), 23);
 %! assert (all (structfun ("isempty", odeoptA)));
 
 %!shared odeoptB, odeoptC