changeset 8244:ca410b015910

Opps with previous patch
author David Bateman <dbateman@free.fr>
date Mon, 20 Oct 2008 16:09:15 +0100
parents ec4d9d657b17
children 166a689b77a9
files scripts/plot/stairs.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/stairs.m	Mon Oct 20 16:02:31 2008 +0100
+++ b/scripts/plot/stairs.m	Mon Oct 20 16:09:15 2008 +0100
@@ -138,7 +138,7 @@
   ys(ridx,:) = y(2:nr,:);
 
   have_line_spec = false;
-  for i = 1 : nargin - 1
+  for i = 1 : length (varargin)
     arg = varargin {i};
     if ((ischar (arg) || iscell (arg)) && ! have_line_spec)
       [linespec, valid] = __pltopt__ ("stairs", arg, false);