How to find minimal distance [Beginner]
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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

Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!