フィルターのクリア

Copy a prticular format file from multiple folders and their subfolders to one folder.

4 ビュー (過去 30 日間)
sc1991
sc1991 2017 年 9 月 21 日
編集済み: Image Analyst 2017 年 9 月 21 日
So I have been trying to lean MATLAB for almost a week Now. I am trying to find a way to copy a prticular format file(can be csv or mat or png) from multiple folders and their subfolders to one folder. any help would be really appriciated.
Thanks

回答 (1 件)

Image Analyst
Image Analyst 2017 年 9 月 21 日
編集済み: Image Analyst 2017 年 9 月 21 日
Gosh, a week? I admire your tenacity but if you're stumped for more than a day or two, ask us.
Simply use dir() with the ** pattern to get all files in all subfolders. Then use copyfile(sourceName, destinationName) to do the move. Here's a start in the attached file.

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by