Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Matrix manipulation Question - arranging rows
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
For example i have the following matrix
a = 1 y y y
4 x x x
2 z z z
3 h h h
where the letters are random numbers
how can i re-arrange the rows depending on the value on the first colomn from lowest to highest so the matrix becomes like this
a = 1 y y y
2 z z z
3 h h h
4 x x x
Thank you
0 comentarios
Respuestas (1)
the cyclist
el 16 de Nov. de 2019
Editada: the cyclist
el 16 de Nov. de 2019
sortrows(a,1)
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!