フィルターのクリア

Group data based on some given points.

1 回表示 (過去 30 日間)
BHAGYALAKSHMI M
BHAGYALAKSHMI M 2020 年 3 月 7 日
コメント済み: BHAGYALAKSHMI M 2020 年 3 月 7 日
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
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
BHAGYALAKSHMI M 2020 年 3 月 7 日
Thank you Sir for your replies and answers.
I am getting some errors like
" Array indices must be positive integers or logical values.
Error in db (line 12)
ix = abs(P(i)-data1) < 2; "

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by