changeset 10842:830e03dd844e

isosurface.m: swap rows and columns of matrix in call to meshgrid
author Martin Helm <martin@mhelm.de>
date Sun, 01 Aug 2010 11:30:34 -0400
parents 1577accf2ed8
children 229675bb7647
files scripts/ChangeLog scripts/plot/isosurface.m
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sun Aug 01 07:20:28 2010 -0700
+++ b/scripts/ChangeLog	Sun Aug 01 11:30:34 2010 -0400
@@ -1,3 +1,8 @@
+2010-08-01  Martin Helm <martin@mhelm.de>
+
+	* plot/isosurface.m: Swap rows and columns of matrix in call to
+	meshgrid.
+
 2010-08-01  Rik <octave@nomad.inbox5.com>
 
 	* plot/print.m: Update documentation string.  Change to active voice.
--- a/scripts/plot/isosurface.m	Sun Aug 01 07:20:28 2010 -0700
+++ b/scripts/plot/isosurface.m	Sun Aug 01 11:30:34 2010 -0400
@@ -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)