Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Closest point from a row of a matrix to a row in another matrix

1 回表示 (過去 30 日間)
Tim Navr
Tim Navr 2016 年 4 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi I have 2 matrices (they are different sizes and are about 140,000 x 3). They represent approximately similar figures. Let A= 100 x 3 and B be 110 x 3. For each point in A I need to find the point in B, which is closest to the point in A and discard all other points. I tried to do a loop within a loop, but that's just tooooooooo slow. Any suggestions? Thank you

回答 (1 件)

KSSV
KSSV 2016 年 4 月 28 日
You can use knnsearch......also have a look in the following function used in link: http://in.mathworks.com/matlabcentral/fileexchange/44334-nearest-neighboring-particle-search-using-all-particles-search

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by