FUNCTION REFERENCE
sliceViewer
Display 2-D slices of a 3-D volume.
Display 2-D slices of a 3-D volume.
Syntax
s = sliceViewer(V)Syntax
s = sliceViewer(V, Name=Value)Syntax
s = sliceViewer(V, 'Name', Value)Accepts 2-D or 3-D numeric or logical arrays. Supported properties: SliceNumber (default centre slice), SliceDirection ([0 0 1] default, [1 0 0], [0 1 0], 'X', 'Y', or 'Z'), Colormap (gray(256) default), DisplayRange (data limits default; [] for auto), ScaleFactors ([1 1 1] default), Parent, Visible and Tag.
Example
V = reshape(1:27, 3, 3, 3); s = sliceViewer(V, 'SliceNumber', 2, 'Colormap', 'hot');Differences from MATLAB: 4-D RGB volumes and SliderValueChanging/SliderValueChanged listeners are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.