changeset 6723:8bfb4ff637e1

[project @ 2007-06-14 10:16:35 by dbateman]
author dbateman
date Thu, 14 Jun 2007 10:16:35 +0000
parents 5b09d433171c
children 388747e3d96b
files doc/interpreter/interp.txi doc/interpreter/interpimages.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/interp.txi	Thu Jun 14 10:13:16 2007 +0000
+++ b/doc/interpreter/interp.txi	Thu Jun 14 10:16:35 2007 +0000
@@ -135,7 +135,7 @@
 vi = interp3(x, y, z, v, xxi, yyi, zzi, 'spline');
 [xxi, yyi, zzi] = ndgrid (xi, yi, zi);
 vi2 = interpn(x, y, z, v, xxi, yyi, zzi, 'spline');
-mesh (yi, zi, squeeze (vi2(1,:,:)));
+mesh (zi, yi, squeeze (vi2(1,:,:)));
 @end group
 @end example
 
--- a/doc/interpreter/interpimages.m	Thu Jun 14 10:13:16 2007 +0000
+++ b/doc/interpreter/interpimages.m	Thu Jun 14 10:16:35 2007 +0000
@@ -18,7 +18,7 @@
     xi = yi = zi = -1:0.1:1;
     [xxi, yyi, zzi] = ndgrid (xi, yi, zi);
     vi = interpn(x, y, z, v, xxi, yyi, zzi, 'spline');
-    mesh (yi, zi, squeeze (vi(1,:,:)));
+    mesh (zi, yi, squeeze (vi(1,:,:)));
     print (strcat (nm, ".", typ), strcat ("-d", typ))
   elseif (strcmp (nm, "interpderiv"))
     t = 0 : 0.3 : pi; dt = t(2)-t(1);