You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function returns all files in a directory (and optionally sub-directories) that match an expression (either regular or glob).
Inputs are:
-The expression to match
-Recursive? (should sub-directories be searched?)
-Type (either 'glob' or 'regexp')
-Directory (specify the directory to search)
-Exclude expression (if a file matches the original expression, but also contains the exclude expression, it will be rejected)
Outputs a cell array of file names.
Cite As
Brian (2026). getfiles (https://www.mathworks.com/matlabcentral/fileexchange/42076-getfiles), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (2.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
