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. 检索时间: .
致谢
启发作品: RPCODE, folders sub-folders
| 版本 | 已发布 | 发行说明 | Action |
|---|---|---|---|
| 1.0.0.0 | the output of results in the new version is more user friendly. |
