selection of equal distances points from a set of points ?

2 ビュー (過去 30 日間)
Abdelwahab Fawzy
Abdelwahab Fawzy 2016 年 7 月 11 日
編集済み: Abdelwahab Fawzy 2016 年 7 月 11 日
assume a list of points or nodes. each one of them has x and y coordinates . the distance between two points i and j equal D(i,j)= sqrt((xi-xj)^2+(yi-yj)^2).
now, i want to select a set of these nodes which have equal distances between them (the inter-distance is specified previously --> d). hence the selected points are uniformly distributed

採用された回答

KSSV
KSSV 2016 年 7 月 11 日
Try to doc knnsearch.....knnsearch gives you nearest neighbors of the given set of points lying at a specified distance given as input.
  3 件のコメント
KSSV
KSSV 2016 年 7 月 11 日
yes.....it is a function.....
Abdelwahab Fawzy
Abdelwahab Fawzy 2016 年 7 月 11 日
編集済み: Abdelwahab Fawzy 2016 年 7 月 11 日
thanx for help, it is used for selection of the nearest neighbor nodes from a given location.
but i still need to select a number of nodes which are separated by an equal distance from each other (d) for example points (A B C D) where, AB~=AC~=AD~=BC~=BD~=CD =d

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

その他の回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2016 年 7 月 11 日
[ii,jj] = find(triu(D == d));

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by