how do I count number of folder?
71 次查看(过去 30 天)
显示 更早的评论
I do know how to count the number of files within the folder like this,
but is their way to file the number of folder inside the certain folder? (not file)
采纳的回答
José-Luis
2014-10-7
all_files = dir;
all_dir = all_files([all_files(:).isdir]);
num_dir = numel(all_dir);
更多回答(1 个)
Image Analyst
2014-10-8
I think I answered this in your other question on it: http://www.mathworks.com/matlabcentral/answers/157750-changing-directory-to-do-same-work#answer_154298
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!