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...
7 Downloads
Updated 12 Feb 2024

View License

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

Cite As

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

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

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.2

shorter code and with more efficiency

1.0.1

rename it as "listfile"

1.0.0