How do I determine the most recently updated file in a folder in MATLAB?
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
MathWorks Support Team
am 1 Dez. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!