Calculate Volume of a Matrix
13 views (last 30 days)
Show older comments
I have a Matrix which I have turned into a 3D image using mesh. How can I calculate the volume of this matrix? I am trying to find total displacement across the Matrix.
0 Comments
Answers (2)
Walter Roberson
on 31 Mar 2011
You could go row by row and trapz(), sum all of those, multiply by the row width to get the volume.
2 Comments
eevee
on 24 Oct 2014
Hi Walter,
I've got a similar question to Nels, I guess. I'm new to MATLAB.
I have plotted a bathymetry from xyz data file. Now, I have to calculate its volume. How should I do it?
Hope to hear from you soon!
Thanks,
Eve
Image Analyst
on 24 Oct 2014
Start your own question (a new, separate question/discussion) and attach your data file and m-code to read it into your volumetric array.
See Also
Categories
Find more on 3-D Volumetric Image Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!