Identify two coordinates on the X-axis and Y-axis of a 3D object

1 回表示 (過去 30 日間)
Alberto Acri
Alberto Acri 2022 年 12 月 29 日
編集済み: Matt J 2022 年 12 月 29 日
Hello! I should retrieve the outermost coordinates on the XY plane of a 3D object.
In detail:
I have a 3D object -> I display it on the XY plane -> on this XY plane I want to determine the outermost coordinates:
  • two coordinates on the X axis (one on the left and one on the right)
  • two coordinates on the Y axis (one above and one below)
data = importdata("NODES_finger_1.txt");
figure
plot3(data(:,1),data(:,2),data(:,3),'k.','Markersize',10)
grid on
xlabel('x')
ylabel('y')
zlabel('z')
view([15,50,30])

採用された回答

Matt J
Matt J 2022 年 12 月 29 日
編集済み: Matt J 2022 年 12 月 29 日
[x,y]=deal(data(:,1),data(:,2));
[~,xmin]=min(x);
[~,xmax]=max(x);
[~,ymin]=min(y);
[~,ymax]=max(y);
points = data([xmin,xmax,ymin,ymax],1:2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by