help find two closet node with their index ..distance = sqrt((xd-x(I))^2 + (yd-y(I))^2)

1 回表示 (過去 30 日間)
maha ismail
maha ismail 2015 年 1 月 29 日
コメント済み: maha ismail 2015 年 1 月 29 日
help find two closet node with their index ..distance = sqrt((xd-x(I))^2 + (yd-y(I))^2)

回答 (1 件)

Jan
Jan 2015 年 1 月 29 日
[value, index] = min(sqrt((xd-x(I))^2 + (yd-y(I))^2))

カテゴリ

Help Center および File ExchangeInstrument Control Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by