MATLAB Answers

find points within a radius of a certain point

12 views (last 30 days)
AAS on 7 Oct 2020
Commented: J. Alex Lee on 8 Oct 2020
Is there any function such as rangesearch but for one point only knowing the max distance (radius ) to find the next point?


Rik on 8 Oct 2020
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.
J. Alex Lee
J. Alex Lee on 8 Oct 2020
can you not just use rangesearch, and use a Y variable that has only 1 observation (1 point)?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!