How to put a struct files into a new folder
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 19 Juil 2019
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
le 19 Juil 2019
Walter Roberson
le 19 Juil 2019
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
le 22 Juil 2019
Réponse acceptée
Plus de réponses (1)
Coco
le 22 Juil 2019
0 votes
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!