How to sort the files in a folder by date?
124 ビュー (過去 30 日間)
古いコメントを表示
Hi,
For example, I have 3 image files in a folder, looks like below (Fig 1).

I then tried to get the information of the image files by:
startpath=pwd;
>> list=dir(startpath);
I get (Fig 2):

I wonder how can I sort the files in the list (excluding the top two '.' and '..') by date (from early to late)?
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!