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

1 visualización (ú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 Instrument Control Toolbox 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