Mercurial > hg > octave-nkf
diff scripts/plot/isonormals.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 | 0579a13f29a1 |
line wrap: on
line diff
--- a/scripts/plot/isonormals.m +++ b/scripts/plot/isonormals.m @@ -118,7 +118,7 @@ z = varargin{3}; c = varargin{4}; vp = varargin{5}; - otherwise + otherwise print_usage (); endswitch if (ismatrix (vp) && size (vp,2) == 3) @@ -149,13 +149,13 @@ %!test %! [x, y, z] = meshgrid (0:.5:2, 0:.5:2, 0:.5:2); -%! c = abs ((x-.5).^2 + (y-.5).^2 + (z-.5).^2); +%! c = abs ((x-.5).^2 + (y-.5).^2 + (z-.5).^2); %! [f, v, cdat] = isosurface (x, y, z, c, .4, y); %! n = isonormals (x, y, z, c, v); %! assert (size (v), size (n)); %!test %! [x, y, z] = meshgrid (0:.5:2, 0:.5:2, 0:.5:2); -%! c = abs ((x-.5).^2 + (y-.5).^2 + (z-.5).^2); +%! c = abs ((x-.5).^2 + (y-.5).^2 + (z-.5).^2); %! [f, v, cdat] = isosurface (x, y, z, c, .4, y); %! np = isonormals (x, y, z, c, v); %! nn = isonormals (x, y, z, c, v, "negate");