How to sort the files in a folder by date?
117 次查看(过去 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!