Find the volume under a 3D surface
조회 수: 6 (최근 30일)
이전 댓글 표시
I've plotted a 3D surface of point clouds using
surface(x,y,z)
The plot looks like below:

I want to measure the volume below the surface, i.e. the volume of space surrounded by the xy plane, the xz plane, and the surface. How can I do that? Any idea?
Thanks!
댓글 수: 0
답변 (1개)
John D'Errico
2021년 1월 9일
Since this appears to be a gridded surface, then you can just use trapz, twice. Call it once on the x dimension, and once on the y dimension.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!