SLICE

 

 Volumetric slice plot.

  SLICE(V,sx,sy,sz,nx) draws slices of volume V at the locations specified

  in the index vectors sx, sy, and sz.  nx is the number of rows in

  volume array V.

 

 

  SLICE(X,Y,Z,V,sx,sy,sz,nx) draws the slices for the volume locations

  specified by the triples (X(i),Y(i),Z(i)).

 

 

  For example, to evaluate the function  x*exp(-x^2-y^2-z^2) over the 

  range  -2 < x < 2,  -2 < y < 2,- 2 < z < 2,

 

 

     [x,y,z] = meshgrid(-2:.2:2, -2:.2:2, -2:.2:2);

     v = x .* exp(-x.^2 - y.^2 - z.^2);

     slice(v,[5 15 21],21,[1 10],21)

 

 

  SLICE returns a vector of handles to SURFACEZ9CYVV objects.