Get files from many directories
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone,
I have a list of directories from which I would like to get the names of the files that they hold. An example list is attached. Then I would like to create an unified list with all the names of those files (from all the folders). I will need this list of files to feed it to another function. I hope this makes sense. I know that maybe using the function dir can help me with this, but I haven't found a way to implement it so it can read every cell from the folder list and get me the contents of it. I would appreciate your help.
Many thanks, Ramiro
0 件のコメント
採用された回答
Image Analyst
2017 年 8 月 8 日
See attached demos, for before and after release R2016b.
If you want, you could strip off the folder and call unique() on the base file names.
その他の回答 (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!