How to sort the files in a folder by date?
조회 수: 47 (최근 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에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!