last_modified

Return the last modified file(s) in a given directory or glob.
834 Downloads
Updated 12 Mar 2007

View License

Return a cell array containing the names of the last modified files in the given directory.

Filters out entries which are directories, to remove those annoying '.' and '..' entries in UNIX.

Equivalent to running system('ls -At | head -n') and then chopping up the result.

Cite As

Matthew Foster (2024). last_modified (https://www.mathworks.com/matlabcentral/fileexchange/14206-last_modified), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

removed extra find, which lint didn't like.