How do I determine the most recently updated file in a folder in MATLAB?
36 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need to load the latest file in a directory into the MATLAB workspace, but I do not know how to determine the most recently updated file.
Risposta accettata
MathWorks Support Team
il 1 Dic 2009
This functionality does not come built-in with MATLAB.
However, this is easy enough to do with a custom function. As an example, use the attached MATLAB function file "getlatestfile.m". This function accepts the full directory path as the input and returns the most recent file in that directory.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!