Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Volumetric slice plot

`slice(V,sx,sy,sz)`

slice(X,Y,Z,V,sx,sy,sz)

slice(V,XI,YI,ZI)

slice(X,Y,Z,V,XI,YI,ZI)

slice(...,'* method*')

slice(ax,...)

h = slice(...)

`slice`

displays orthogonal slice planes through
volumetric data.

`slice(V,sx,sy,sz)`

draws
slices along the *x*, *y*, *z* directions
in the volume `V`

at the points in the vectors `sx`

, `sy`

,
and `sz`

. `V`

is an *m*-by-*n*-by-*p* volume
array containing data values at the default location ```
X =
1:n
```

, `Y = 1:m`

, `Z =`

`1:p`

.
Each element in the vectors `sx`

, `sy`

,
and `sz`

defines a slice plane in the *x*-, *y*-,
or *z*-axis direction.

`slice(X,Y,Z,V,sx,sy,sz)`

draws slices of the volume `V`

. `X`

, `Y`

,
and `Z`

are three-dimensional arrays specifying the
coordinates for `V`

. `X`

, `Y`

,
and `Z`

must be monotonic and orthogonally spaced
(as if produced by the function `meshgrid`

). The
color at each point is determined by 3-D interpolation into the volume `V`

.

`slice(V,XI,YI,ZI)`

draws
data in the volume `V`

for the slices defined by `XI`

, `YI`

,
and `ZI`

. `XI`

, `YI`

,
and `ZI`

are matrices that define a surface, and
the volume is evaluated at the surface points. `XI`

, `YI`

,
and `ZI`

must all be the same size.

`slice(X,Y,Z,V,XI,YI,ZI)`

draws slices through the volume `V`

along the surface
defined by the arrays `XI`

, `YI`

, `ZI`

.

`slice(...,'`

specifies the interpolation method. * method*')

`'`

`method`

`'`

is `'linear'`

, `'cubic'`

,
or `'nearest'`

.`linear`

specifies trilinear interpolation (the default).`cubic`

specifies tricubic interpolation.`nearest`

specifies nearest-neighbor interpolation.

`slice(ax,...)`

plots into
the axes with the handle `ax`

instead of into the
current axes object (`gca`

).
The axes `clim`

property is set to span the finite
values of `V`

.

`h = slice(...)`

returns
a vector of handles to surface graphics objects.

The color drawn at each point is determined by interpolation
into the volume `V`

.

Was this topic helpful?