Hi there,
I am trying to calculate the volume of a stockpile using 3d points gathered.
First I created three matrices. X, Y and Z
Here's the simple code used
tri = delaunay(X,Y,Z);
h = trisurf(tri, X, Y, Z);
Now I'm stuck on calculating volume. Could you kindly assist.
Thanks

 채택된 답변

Bruno Luong
Bruno Luong 2020년 11월 9일

0 개 추천

You'll get the volume of the convex hull by
[~,V] = convhull(X,Y,Z)

댓글 수: 3

Julius Mwale
Julius Mwale 2020년 11월 10일
Thanks Bruno. How do I get volume by concave hull?
Bruno Luong
Bruno Luong 2020년 11월 10일
A volume is defined by (thetrahedron) connectivity, in addition to a list of scattered points. In your case you just gives the list of points as input, so the volume is not defined. The only one that is defined is by default the convex hull.
Julius Mwale
Julius Mwale 2020년 11월 10일
Noted Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2020년 11월 9일

댓글:

2020년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by