# Find the volume of a nx3 Dataset

3 views (last 30 days)

Show older comments

Jose Andrés
on 12 Jun 2015

Commented: Jose Andrés
on 21 Jun 2015

Hello everybody, I have an easy question:

I have seen this great explanation about how to integrate the volume underneath a set of nonuniformly spaced data: http://blogs.mathworks.com/videos/2009/09/08/integrating-to-find-the-volume-underneath-a-set-of-nonuniformly-spaced-data/

but the interpolation here it´s done between 0-1 because of his dataset. My question is: if my dataset has a large number of different values (like a ball), how should I do this interpolation? I have thought about to change the

interpZ(0.5,0.5) %test interpolation

vol = quad2d(interpZ,0,1,0,1) %volume should be close to 1

like this:

interpZ(¿?,¿?) %test interpolation

vol = quad2d(interpZ,min(min(z)),max(max(z)),min(min(z)),max(max(z)))

Thank you.

##### 0 Comments

### Accepted Answer

Image Analyst
on 13 Jun 2015

##### 11 Comments

### More Answers (0)

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!