![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/275707/image.png)
Group data based on some given points.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have data and some points(P). I need to extract the 10 nearest points of the P from the data based on distance. And make groups each P and its nearest elements.
I attached the data set here. How can I do that? Please help me.
Thanks in advance.
4 Kommentare
darova
am 7 Mär. 2020
What about this simple construction?
ix = abs(P(i)-data1) < 2; % group1, indices of data1 close to P(i) (smaller than 2)
Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!