last_modified

Return the last modified file(s) in a given directory or glob.

You are now following this Submission

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 (2026). last_modified (https://www.mathworks.com/matlabcentral/fileexchange/14206-last_modified), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

removed extra find, which lint didn't like.