changeset 14086:41511cce0488 stable

test: Fix 2nd demo for slice() (bug #35143) slice.m: Declare variables for 2nd demo (bug #35143)
author Rik <octave@nomad.inbox5.com>
date Wed, 21 Dec 2011 10:12:40 -0800
parents 4e8f23ccadce
children 8782d41893c6
files scripts/plot/slice.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/slice.m
+++ b/scripts/plot/slice.m
@@ -187,6 +187,8 @@
 %! slice (x, y, z, v, [], 0, []);
 
 %!demo
+%! [x, y, z] = meshgrid (linspace (-8, 8, 32));
+%! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2));
 %! [xi, yi] = meshgrid (linspace (-7, 7));
 %! zi = xi + yi;
 %! slice (x, y, z, v, xi, yi, zi);