Evaluation of Volume under surface for tpaps interpolation

3 views (last 30 days)
I have used tpaps function to interpolate my X,Y,Z data and thus have obtained a surface. Please let me know how to evaluate volume under the surface using integral2 function. I am at present using a double summation approach and fnval function using for loops to calculate volume but it takes a lot of time.

Accepted Answer

Prudhvi Peddagoni
Prudhvi Peddagoni on 28 Sep 2020
Hi Prathamesh Apte,
There are several ways to calculate the volume under a surface. Check out this blog for more information.
Hope this helps.
  1 Comment
Prathamesh Apte
Prathamesh Apte on 5 Oct 2020
Dear Prudhvi Peddagoni,
Thanks for your reply and sorry for the late reply.
I tried the trapz function today and was able to get the answer in much less time. Thanks a lot for your help.
Regards.
Prathamesh Apte

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!