Group data based on some given points.
조회 수: 1 (최근 30일)
이전 댓글 표시
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일
What about this simple construction?
ix = abs(P(i)-data1) < 2; % group1, indices of data1 close to P(i) (smaller than 2)
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!