Mercurial > octave-antonio
diff scripts/plot/ndgrid.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | a156263b5509 |
line wrap: on
line diff
--- a/scripts/plot/ndgrid.m Thu Jan 20 17:24:59 2011 -0500 +++ b/scripts/plot/ndgrid.m Thu Jan 20 17:35:29 2011 -0500 @@ -35,17 +35,17 @@ function varargout = ndgrid (varargin) if (nargin == 1) - n = max ([nargout, 2]); + n = max ([nargout, 2]); ## If only one input argument is given, repeat it n-times varargin(1:n) = varargin(1); elseif (nargin >= nargout) - n = max ([nargin, 2]); + n = max ([nargin, 2]); else error ("ndgrid: wrong number of input arguments"); endif ## Determine the size of the output arguments - + shape = zeros (1, n); for i = 1:n