3-D Visualization Previous page   Next Page

Accessing Subregions of Volume Data

The subvolume function provides a simple way to access subregions of a volume data set. subvolume enables you to select regions of interest based on limits rather than using the colon operator to index into the 3-D arrays that define volumes. Consider the following two approaches to creating the data for a subvolume -- indexing with the colon operator and using subvolume.

Indexing with the Colon Operator

When you index the arrays, you work with values that specify the elements in each dimension of the array.

Using the subvolume Function

subvolume enables you to use coordinate values that you can read from the axes. For example,

You can then use the subvolume data as inputs to any function requiring vector volume data.


Previous page  Specifying Starting Points for Stream Plots Stream Line Plots of Vector Data Next page

© 1994-2005 The MathWorks, Inc.