(Answers Dev) Restored edit
Info
This question is locked. 編集または回答するには再度開いてください。
Finding the minimum distance between two matrices
18 ビュー (過去 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!