Group data based on some given points.
显示 更早的评论
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 个评论
darova
2020-3-7
I opened your excel file and see this

I don't see P points. I only see columns with some data
Be more specific. Make some simple drawing or something
BHAGYALAKSHMI M
2020-3-7
darova
2020-3-7
What about this simple construction?
ix = abs(P(i)-data1) < 2; % group1, indices of data1 close to P(i) (smaller than 2)
BHAGYALAKSHMI M
2020-3-7
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!