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

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

Risposte (1)

Jan
Jan il 29 Gen 2015
[value, index] = min(sqrt((xd-x(I))^2 + (yd-y(I))^2))

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by