how to sort table in R2013a

2 ビュー (過去 30 日間)
imola
imola 2014 年 8 月 10 日
編集済み: imola 2014 年 10 月 12 日
Hi all, I made the table, but I cant sorted, I need to sort the table with respect to {K}and{l} ,can anyone tell how to do it. Thanks in advance
results(i,1)=a;
results(i,2)=b;
results(i,3)=d;
results(i,4)=g;
results(i,5)=h;
results(i,6)=k;
results(i,7)=l;
end
f=figure;
headers={'a','b','d','g','h','k','l'};
data=[results];
H= uitable(f,'Data',data, 'ColumnName',headers);

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 8 月 10 日
Use sortrows

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by