From: Alexjang on
Now i have some points with X, Y and Z values, and i use a given function to browse the volume. The function needs a input argument "vol", which is a three-dimensional matrix. The first dimension of "vol" is the y-axis,the second the x-axis, and the third the z-axis. How can i created the vol based on my X,Y,Z values?
From: Ashish Uthama on
On Mon, 01 Mar 2010 02:02:43 -0500, Alexjang <alexto1978(a)gmail.com> wrote:

> Now i have some points with X, Y and Z values, and i use a given
> function to browse the volume. The function needs a input argument
> "vol", which is a three-dimensional matrix. The first dimension of "vol"
> is the y-axis,the second the x-axis, and the third the z-axis. How can i
> created the vol based on my X,Y,Z values?

Depending on your MATLAB version, look for GRIDDATA3 / TriScatteredInterp.

I believe there are a lot of useful functions for this on the FEX
(http://www.mathworks.com/matlabcentral/fileexchange/) ('scatter' is a
good keyword to search for)