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

4 visualizaciones (últimos 30 días)
help find two closet node with their index ..distance = sqrt((xd-x(I))^2 + (yd-y(I))^2)

Respuestas (1)

Jan
Jan el 29 de En. de 2015
[value, index] = min(sqrt((xd-x(I))^2 + (yd-y(I))^2))

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by