Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to find minimal distance [Beginner]

1 次查看(过去 30 天)
Alex castilla
Alex castilla 2018-3-18
关闭: MATLAB Answer Bot 2021-8-20
Hello everybody,
I have a small question;
I have two matrices: A(2099x2) and B(9x2).
Matrix A = trajectory (x,y)
Matrix B = position of 9 targets ( X,Y)
I would like to know how to calculate the distance (red arrows) of the nearest-neighbor of a point between the trajectory (blue line) and the targets( red squares). Thanks in advance

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by