Given a vector, how to pair them by nearest?
Afficher commentaires plus anciens
Hi,
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Thanks!
Réponse acceptée
Plus de réponses (1)
Jos (10584)
le 25 Fév 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 commentaire
Dani Tormo
le 25 Fév 2013
Modifié(e) : Dani Tormo
le 25 Fév 2013
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!