How to sort the files in a folder by date?
155 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!