Given a vector, how to pair them by nearest?
Mostrar comentarios más antiguos
Hi,
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Thanks!
Respuesta aceptada
Más respuestas (1)
Jos (10584)
el 25 de Feb. de 2013
0 votos
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 comentario
Dani Tormo
el 25 de Feb. de 2013
Editada: Dani Tormo
el 25 de Feb. de 2013
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!