FUNCTION REFERENCE

slice

Draw slices through three-dimensional gridded data.

Draw slices through three-dimensional gridded data.

Syntax

h = slice(V, xslice, yslice, zslice)

Syntax

h = slice(X, Y, Z, V, xslice, yslice, zslice, method)

Syntax

h = slice(ax, ...)

Scalar or vector positions draw planes; [] omits an axis. Three matrices of equal size specify a surface. The method is 'linear' (default), 'nearest' or 'cubic'. Handles are returned in x, y, z order. Surfaces support the same properties and limits as surf.

Example

h = slice(ones(3,3,3), [], [], 2);

Differences from MATLAB: Coordinates must be increasing meshgrid axes; interpolation has the same limitations as interp3.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.