# MATLAB: Volume of 3D data points and volume of Convex Hull of those data points

convexhullvolume

I am having 3D data points. I want to calculate volume of these 3D points. Then I want to calculate volume of convex hull of these data points.
I have calculated volume of 3D points by calculating number of voxels and volume of convex hull by using 'convhull' command. But, I think method of calculating volume in convhull is different.
So, I want to know how to calculate volume in these two cases using same method.

doc isosurface