Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to find minimal distance [Beginner]
조회 수: 2 (최근 30일)
이전 댓글 표시
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171362/image.jpeg)
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!