how to sort variable of an array?
Mostrar comentarios más antiguos
let suppose we have 3 varaibles A=45, B=54,C=23 and we stores data in matrix M=[A B C] i want to sort on basis of their numerical value like M=[B A C] dont want to change it in numerical form
1 comentario
Respuestas (1)
Matt J
el 13 de Sept. de 2019
sort(M,'descend')
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!