listdir, similar as os.listdir( ** **) in Python

to list the files with a specific file's type: e.g., ".mat", only list the mat files. get info: the file names, file path, name length...

You are now following this Submission

get the folder information for a specific file's type: e.g., the file names, file path, name length

Cite As

Jianfeng Liu (2026). listdir, similar as os.listdir( ** **) in Python (https://in.mathworks.com/matlabcentral/fileexchange/155307-listdir-similar-as-os-listdir-in-python), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

shorter code and with more efficiency

1.0.1

rename it as "listfile"

1.0.0