Mercurial > hg > octave-nkf
diff scripts/plot/plot3.m @ 5838:376e02b2ce70
[project @ 2006-06-01 20:23:53 by jwe]
author | jwe |
---|---|
date | Thu, 01 Jun 2006 20:23:54 +0000 |
parents | 55404f3b0da1 |
children | 101d966c8d6b |
line wrap: on
line diff
--- a/scripts/plot/plot3.m +++ b/scripts/plot/plot3.m @@ -137,7 +137,7 @@ ## Author: Paul Kienzle ## (modified from __plt__.m) -function plot3(varargin) +function plot3 (varargin) hold_state = ishold (); @@ -148,7 +148,7 @@ z_set = 0; ## Gather arguments, decode format, and plot lines. - for arg = 1:length(varargin) + for arg = 1:nargin new = varargin{arg}; if (ischar (new)) @@ -161,13 +161,13 @@ x_set = 0; y_set = 0; z_set = 0; - elseif (!x_set) + elseif (! x_set) x = new; x_set = 1; - elseif (!y_set) + elseif (! y_set) y = new; y_set = 1; - elseif (!z_set) + elseif (! z_set) z = new; z_set = 1; else