Clear Filters
Clear Filters

Hi, does anyone know how to calculate the volume of a closed mesh shape?

3 views (last 30 days)
The shape is concave. I tried to use 'boundary', but the problem is that for the X and Y data the shrink factor must be zero, while I want the shrink factor to be 1 for the Z data. I also tried to grid the data but this doesn't give the desired result because the area is irregular. Is there another solution to get the volume from this irregular shape?
Thank you in advance!

Answers (1)

KL
KL on 30 Oct 2017
There's a blog post explaining the same. Find it on the below link: https://blogs.mathworks.com/loren/2011/06/13/calculating-the-area-under-a-surface/
  1 Comment
CocoA
CocoA on 31 Oct 2017
Thank you for the help, but I do not quite get it yet. I attached an image of the shape I want to calculate the volume of. The blog suggests to use the functions fit and quad2d but as you can see in the image, it is not a rectangular/square area. Do you know how to solve that? Thanks a lot!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!