フィルターのクリア

Data sorting.

1 回表示 (過去 30 日間)
Marcus Vinicius Pereira de Souza
Marcus Vinicius Pereira de Souza 2012 年 3 月 26 日
Dear all, I have the following database: Company Year Data A 2000 2 A 2001 5 A 2002 4 B 2000 0 B 2001 6 B 2002 5 C 2000 1 C 2001 2 C 2002 7
However, I need to sort as follows: Company Year Data Period A 2000 2 1 B 2000 0 1 C 2000 1 1 A 2001 5 2 B 2001 6 2 C 2001 2 2 A 2002 4 3 B 2002 5 3 C 2002 7 3
Can anyone help me? Thanks a lot. Marcus Vinicius

回答 (1 件)

Onomitra Ghosh
Onomitra Ghosh 2012 年 3 月 26 日
Get them all in a cell array without the header and use the sortcell function according to the column you want to sort:

カテゴリ

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