contourslice
Draw contours in volume slice planes
Syntax
contourslice(X,Y,Z,V,Sx,Sy,Sz)
contourslice(X,Y,Z,V,Xi,Yi,Zi)
contourslice(V,Sx,Sy,Sz)
contourslice(V,Xi,Yi,Zi)
contourslice(...,n)
contourslice(...,cvals)
contourslice(...,[cv cv])
contourslice(...,'method
')
contourslice(axes_handle,...)
h = contourslice(...)
Description
contourslice(X,Y,Z,V,Sx,Sy,Sz)
draws contours in thex-,y-, andz设在对齐ed planes at the points in the vectorsSx
,Sy
,Sz
. The arraysX
,Y
, andZ
define the coordinates for the volumeV
and must be monotonic and represent a Cartesian, axis-aligned grid (such as the data produced bymeshgrid
). The color at each contour is determined by the volumeV
, which must be an m-by-n-by-p volume array.
contourslice(X,Y,Z,V,Xi,Yi,Zi)
draws contours through the volumeV
along the surface defined by the 2-D arraysXi,Yi,Zi
. The surface should lie within the bounds of the volume.
contourslice(V,Sx,Sy,Sz)
andcontourslice(V,Xi,Yi,Zi)
(omitting theX
,Y
, andZ
arguments) assume[X,Y,Z] = meshgrid(1:n,1:m,1:p)
, where[m,n,p]= size(v)
.
contourslice(...,n)
drawsn
contour lines per plane, overriding the automatic value.
contourslice(...,cvals)
drawslength(cval)
contour lines per plane at the values specified in vectorcvals
.
contourslice(...,[cv cv])
computes a single contour per plane at the levelcv
.
contourslice(...,'
specifies the interpolation method to use.method
')method
can belinear
,cubic
, ornearest
.nearest
is the default except when the contours are being drawn along the surface defined byXi
,Yi
,Zi
, in which caselinear
is the default. (Seeinterp3
for a discussion of these interpolation methods.)
contourslice(axes_handle,...)
plots into the axes with the handleaxes_handle
instead of into the current axes (gca
).
h = contourslice(...)
returns a vector of handles topatch
objects that are used to implement the contour lines.