diff scripts/plot/__errplot__.m @ 4717:7fa16e369904

[project @ 2004-01-23 03:15:53 by jwe]
author jwe
date Fri, 23 Jan 2004 03:15:53 +0000
parents 17826ec287bc
children 89eee52fd4c7
line wrap: on
line diff
--- a/scripts/plot/__errplot__.m
+++ b/scripts/plot/__errplot__.m
@@ -35,7 +35,9 @@
 
 function __errplot__ (varargin)
 
-  if (nargin < 3) # atleast two data arguments needed
+  nargs = nargin ();
+
+  if (nargs < 3) # atleast two data arguments needed
     usage ("__errplot__ (arg1, ..., fmt)");
   endif
 
@@ -43,7 +45,7 @@
   ndata = 0;
   k = 1;
 
-  while (nargin--)
+  while (nargs--)
     a = varargin{k++};
     if (! isstr (a))
       ndata++;