how do I count number of folder?
37 ビュー (過去 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!