FUNCTION REFERENCE

contourslice

Draw contours through volume slices.

Draw contours through volume slices.

Syntax

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

Syntax

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

Syntax

h = contourslice(V, Xi, Yi, Zi)

Syntax

h = contourslice(..., nlevels)

Syntax

h = contourslice(..., levels)

Syntax

h = contourslice(..., method)

Syntax

h = contourslice(ax, ...)

Scalar or vector positions select axis-aligned planes. Use [] to omit an axis, or supply equal-sized Xi, Yi, Zi matrices for a surface. The interpolation methods are 'nearest' (default for planes), 'linear' (default for a surface) and 'cubic'.

By default, each slice has ten levels spaced inside its sampled data range. A positive integer changes the count, and a vector supplies explicit levels. Use [k k] for a single level k. Each contour line returns a patch handle with FaceColor 'none', EdgeColor 'flat' and CData equal to the contour level. Existing plots are retained.

Example

[X,Y,Z] = meshgrid(1:4,1:4,1:4); V = X+2*Y+3*Z; h = contourslice(X,Y,Z,V,[],[],2,[10 13]); view(3);

Differences from MATLAB: Coordinates and methods have the same limits as interp3. Each line counts toward the figure's 64-series limit.

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