フィルターのクリア

How to compute magnitude of volume

6 ビュー (過去 30 日間)
Anshul Jain
Anshul Jain 2021 年 2 月 14 日
コメント済み: Anshul Jain 2021 年 2 月 16 日
Dear sir,
I have 216 values of P, Q and R all in mm. I got the 3D plot for it. However, I want to calculate exact magnitude of volume in mm^3.
Kindly let me know sir how to get it.
Programming I have used to obtain 3D plot is shown below and values of P, Q and R are attached in excel file.
Thanks in advance
T = readtable('Book1.xlsx', 'Sheet',1, 'Range','F1:H217');
T = table2array(T);
P=T(:,1);
Q=T(:,2);
R=T(:,3);
plot3(P,Q,R,'.');
kkk=boundary(P,Q,R);
trisurf(kkk,P,Q,R,'Facecolor','r');
xlabel('P(mm)');
ylabel('Q(mm)');
zlabel('R(mm)');

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 2 月 14 日
編集済み: Walter Roberson 2021 年 2 月 14 日
[kkk, vol] = boundary(P,Q,R);
gives the volume inside the boundary.
The volume calculation does count on the axes all being to the same scale, that one unit in one axes is the same as one unit in another axes.
  1 件のコメント
Anshul Jain
Anshul Jain 2021 年 2 月 16 日
Thank you sir!!!!

サインインしてコメントする。

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by