FUNCTION REFERENCE

reducevolume

Retain regularly spaced samples of a volume.

Retain regularly spaced samples of a volume.

Syntax

W = reducevolume(V, R)

Syntax

[X, Y, Z, W] = reducevolume(X, Y, Z, V, R)

R is a positive integer scalar or [Rx Ry Rz]. The sampled arrays retain their input classes.

Example

size(reducevolume(ones(4, 4, 4), 2))   % [2 2 2]

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