slice
- :
h =slice(v, sx, sy, sz)¶ - :
h =slice(x, y, z, v, sx, sy, sz)¶ - :
h =slice(v, xi, yi, zi)¶ - :
h =slice(…, method)¶ - : slice
(ax, …)¶ Draw slices through the volume data v.
v is an m-by-n-by-p array (rows y, columns x, pages z); the coordinates x, y, z are arrays or monotonic vectors (default: the indices). The vectors sx, sy, sz give the positions of planes perpendicular to the axes (use
[]for none); every plane is one surface object coloured by the interpolated data. With the matrices xi, yi, zi of one size a single curved slice is drawn. The interpolation method is"linear"(default),"cubic"or"nearest". Points outside the volume are NaN. The result is a column vector of surface handles.