# HG changeset patch # User address@hidden # Date 1280662267 -7200 # Node ID d44ffaea7cf23b0bb5c5bfc4b544518c9b04c144 # Parent 89f4d7e294cc80ec7c628d3d06455abe45f772d7 fixed meshgrid creation for isosurface when only 2 args are given diff -r 89f4d7e294cc -r d44ffaea7cf2 scripts/plot/isosurface.m --- a/scripts/plot/isosurface.m Sat Jul 31 11:18:11 2010 -0700 +++ b/scripts/plot/isosurface.m Sun Aug 01 13:31:07 2010 +0200 @@ -132,7 +132,7 @@ endif else val = varargin{1}; - [n1, n2, n3] = size (val); + [n2, n1, n3] = size (val); [x, y, z] = meshgrid (1:n1, 1:n2, 1:n3); iso = varargin{2}; if (nargin >= 3 && ismatrix (varargin{3})) @@ -214,4 +214,4 @@ %! clf %! [x,y,z] = meshgrid(-2:0.5:2, -2:0.5:2, -2:0.5:2); %! v = x.^2 + y.^2 + z.^2; -%! isosurface (x, y, z, v, 1) \ No newline at end of file +%! isosurface (x, y, z, v, 1)