FUNCTION REFERENCE

subvolume

Extract a rectangular region from a volume.

Extract a rectangular region from a volume.

Syntax

W = subvolume(V, limits)

Syntax

[X, Y, Z, W] = subvolume(X, Y, Z, V, limits)

Limits are [xmin xmax ymin ymax zmin zmax]; NaN leaves a bound unrestricted. The extracted arrays retain their input classes.

Example

size(subvolume(ones(4, 4, 4), [1 2 1 2 1 2]))   % [2 2 2]

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