10 nearest neighbors between points
古いコメントを表示
Hi People,
I could really some help asap. I need to figure out how to modify the code proposed by MattJ (from a previous question) in order to find the 10 nearest points to every other point within a group of points (i.e., 10 nearest neighrbors). The points I speak of are the Fermat center points to the Triplets were found in the previous task. I have found all these "center points" and have their coordinates in the attached file (F_points.mat). Any help you could offer would be greatly appreciated.
Best
Steve
3 件のコメント
Walter Roberson
2019 年 9 月 30 日
attachment seems to be missing?
A link to the previous Question would help.
Steve
2019 年 9 月 30 日
回答 (1 件)
Walter Roberson
2019 年 9 月 30 日
1 投票
There is a specific routine for k-nearest-neighbour
4 件のコメント
Steve
2019 年 9 月 30 日
Walter Roberson
2019 年 9 月 30 日
The "better way" is to use knnsearch . Your situation is suitable for using KDTreeSearcher
Steve
2019 年 9 月 30 日
Catalytic
2019 年 9 月 30 日
We can't see what you tried, and so can't know what to advise further.
カテゴリ
ヘルプ センター および File Exchange で Nearest Neighbors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!