subvolume
Extract subset of volume data set
Syntax
[Nx,Ny,Nz,Nv] = subvolume(X,Y,Z,V,limits)
[Nx,Ny,Nz,Nv] = subvolume(V,limits)
Nv = subvolume(...)
Description
[Nx,Ny,Nz,Nv] = subvolume(X,Y,Z,V,limits)
extracts a subset of the volume data setV
using the specified axis-alignedlimits
.limits = [xmin,xmax,ymin, ymax,zmin,zmax]
(AnyNaN
s in the limits indicate that the volume should not be cropped along that axis.)
The arraysX
,Y
, andZ
define the coordinates for the volumeV
. The subvolume is returned inNV
and the coordinates of the subvolume are given inNX
,NY
, andNZ
.
[Nx,Ny,Nz,Nv] = subvolume(V,limits)
assumes the arraysX
,Y
, andZ
are defined as
[X,Y,Z] = meshgrid(1:N,1:M,1:P)
where[M,N,P] = size(V)
.
Nv = subvolume(...)
returns only the subvolume.
Examples
Introduced before R2006a
Was this topic helpful?