how do i sort a single row in terms of descending terms
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
i was given an excel file with 5 row and 5 columns and i need to sort the first column in terms of descending terms, i managed to successfully open the excel file on matlab
1 个评论
Azzi Abdelmalek
2013-4-20
Do you want to import the data ?
回答(2 个)
If you only want to sort the first column have a look at
B = sort(A,dim)
If you want to sort the whole matrix according to the first column use
B = sortrows(A,-1)
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!