listdir, similar as os.listdir( ** **) in Python
Version 1.0.2 (71 KB) by
Jianfeng Liu
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...
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://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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.2 | shorter code and with more efficiency |
|
|
| 1.0.1 | rename it as "listfile" |
|
|
| 1.0.0 |
|
