sort elements in a cell , they are all txt file names?

3 ビュー (過去 30 日間)
Roger
Roger 2014 年 7 月 1 日
コメント済み: Jan 2014 年 7 月 1 日
files ={'200802291600.1.txt';
'200803011600.1.txt';
'200803021600.1.txt';
'200803031600.1.txt';
'200803041600.1.txt';
'200803051600.1.txt';
'200803061600.1.txt';
'200803071600.1.txt'}
these are the files' names stored in a cell ,sometimes they are in mess ,
how to sort them by time ,thanks for doing sth.
  2 件のコメント
Roger
Roger 2014 年 7 月 1 日
the real thing i want to do is combine these files day by day to one file
Jan
Jan 2014 年 7 月 1 日
@Roger: Please use the chance to edit the original question and do not hide this important detail in a comment. Then specify what "combine" exactly means. Be aware, that the readers in the forum do not have the faintest idea about what you are doing and what you want to achieve.

サインインしてコメントする。

採用された回答

Andrei Bobrov
Andrei Bobrov 2014 年 7 月 1 日
out = sort(files);

その他の回答 (0 件)

カテゴリ

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