SUBDIR *new*

版本 1.0.0.0 (616 字节) 作者: Elmar Tarajan
Recursively search for files and/or directorys under given folder without using of global variables.
7.3K 次下载
更新 2004/12/7

无许可证

SUBDIR
returns all subfolder under current path.
P = SUBDIR('directory_name')
stores all subfolders under given directory into a variable 'P'

[P F] = SUBDIR('directory_name')
stores all subfolders under given directory into a
variable 'P' and all filenames into a variable 'F'.
use sort([F{:}]) to get sorted list of all filenames.

引用格式

Elmar Tarajan (2026). SUBDIR *new* (https://ww2.mathworks.cn/matlabcentral/fileexchange/1492-subdir-new), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息
致谢

启发作品: RPCODE, folders sub-folders

版本 已发布 发行说明
1.0.0.0

the output of results in the new version is more user friendly.