Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Sorting an array in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all:
I am trying to sort an array by the names of counties but I am struggling on how to do this. I have attached a picture of what the array looks like. Thanks for your help!
0 Kommentare
Antworten (1)
Azzi Abdelmalek
am 11 Jan. 2014
Bearbeitet: Azzi Abdelmalek
am 11 Jan. 2014
col=7
out=sortrows(A,col)
Example
A={1 'A' 'Baldwin';2 'B' 'Walton';3 'C' 'Jackson'}
col=3
out=sortrows(A,col)
2 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!