Given a vector, how to pair them by nearest?
Ältere Kommentare anzeigen
Hi,
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Thanks!
Akzeptierte Antwort
Weitere Antworten (1)
Jos (10584)
am 25 Feb. 2013
0 Stimmen
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 Kommentar
Dani Tormo
am 25 Feb. 2013
Bearbeitet: Dani Tormo
am 25 Feb. 2013
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!