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.
引用格式
Brian (2024). getfiles (https://www.mathworks.com/matlabcentral/fileexchange/42076-getfiles), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Search Path 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |