Given a vector, how to pair them by nearest?
Show older comments
Hi,
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Thanks!
Accepted Answer
More Answers (1)
Jos (10584)
on 25 Feb 2013
0 votes
What do you mean by ' pair them by nearest '? Do you want to SORT the values?
Otherwise, can you give a small example of your vector and the required result of such a magic function?
1 Comment
Dani Tormo
on 25 Feb 2013
Edited: Dani Tormo
on 25 Feb 2013
Categories
Find more on Nearest Neighbors in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!