(Answers Dev) Restored edit
Info
This question is locked. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Finding the minimum distance between two matrices
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi, I have two matrices of xy co-ordinates, one being the outline of a train and one being the outline of the structure the train is passing through. I would like to find the minimum distance between these matrices to work out the minimum clearance. I am new to MATLAB and any help would be appreciated, thanks in advance.
댓글 수: 1
추가 답변 (1개)
Torsten
2024년 6월 4일
편집: Torsten
2024년 6월 4일
Use one matrix to generate the curve and the other dataset as a list of points for which you want to compute the distance to the curve. Finally, take min(.) of the distances computed.
After this, you could reverse the roles of curve and list of points to see whether you get the same distance.
댓글 수: 0
This question is locked.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!