MATLAB Answers

find points within a radius of a certain point

11 ビュー (過去 30 日間)
AAS
AAS 2020 年 10 月 7 日
コメント済み: J. Alex Lee 2020 年 10 月 8 日
Is there any function such as rangesearch but for one point only knowing the max distance (radius ) to find the next point?
Thanks

  3 件のコメント

Rik
Rik 2020 年 10 月 8 日
There are functions that will calculate all inter-point distances for you, but those will calculate all (after which you can filter valid ones).
Do you want only a single point from many? Then it might be faster to have a loop that breaks once a valid point is found.
KSSV
KSSV 2020 年 10 月 8 日
Read about knnsearch.
J. Alex Lee
J. Alex Lee 2020 年 10 月 8 日
can you not just use rangesearch, and use a Y variable that has only 1 observation (1 point)?

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by