Removing rows from MyFolderInfo = dir('myfolder') before specific date
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Having applied the code:
MyFolderInfo = dir('myfolder') ;
and having thus created the struct "MyFolderInfo" with 5 fields containing information about the content of my directory, I now want to update the list. In particular, I wish to remove from "MyFolderInfo" all rows for the files that were updated before a specific date.
How is this done?
0 Commenti
Risposta accettata
Adam
il 18 Ago 2017
myDate = '10-Jul-2015';
myDateNum = datenum( myDate );
MyFolderInfo( [ MyFolderInfo.datenum ] < myDateNum ) = [];
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!