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

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by