Info
此问题已关闭。 请重新打开它进行编辑或回答。
Sorting an array in matlab
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Azzi Abdelmalek
2014-1-11
编辑:Azzi Abdelmalek
2014-1-11
col=7
out=sortrows(A,col)
Example
A={1 'A' 'Baldwin';2 'B' 'Walton';3 'C' 'Jackson'}
col=3
out=sortrows(A,col)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!