Locate two neighboring nodes in space so as to divide the matrix into two
古いコメントを表示
I have the coordinates of nodes arranged in space in the shape of 8.
Is there a way to locate the nearest points as marked in the two figures (circled in red)? note: the figures are an example
I need to locate the two nodes to "separate" the coordinates of the nodes in matrix A and matrix B.
plane_new = importdata("plane_new_2_30_jj2.mat");
% OR
plane_new = importdata("plane_new_3_31_jj2.mat");
figure
plot3(plane_new(:,1),plane_new(:,2),plane_new(:,3),'k.','Markersize',20);
axis equal
grid off


3 件のコメント
Matt J
2024 年 2 月 24 日
It's not clear how you choose the pair of separating points in the second case. WHy couldn't they be as marked in yellow below? Why couldn't they be any pair of points on the parallel edges of the neck?

Alberto Acri
2024 年 2 月 24 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Nearest Neighbors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
