How to put a struct files into a new folder
古いコメントを表示
Hi guys,
After i use the following code to find files i want, how to put those files into the new folder? Thank you.
This code will give me the info of files in a struct such as name, path, size etc.
files = dir('D:\Data\**\*.mat')
4 件のコメント
Walter Roberson
2019 年 7 月 19 日
You are dealing with multiple folders. Should all of the files, no matter which original folder, be put into the same destination folder? Should there be a different sub-folder for each original folder? If so then how many levels of folder name should be retained in constructing the destination file name?
Coco
2019 年 7 月 19 日
Walter Roberson
2019 年 7 月 19 日
To confirm: even though each of the level 3 folders has 100+ files, you want to extract only the one where the "cell" number prefix matches the folder name? Does it happen to be the case that those are the only cell*_Area.csv files in those folders? For example, there is no cell1_Area.csv inside MDA cell2 that needs to be ignored because the cell# prefix does not match the folder name ?
Coco
2019 年 7 月 22 日
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!