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!