How to put a struct files into a new folder
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 19 de Jul. de 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
el 19 de Jul. de 2019
Walter Roberson
el 19 de Jul. de 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
el 22 de Jul. de 2019
Respuesta aceptada
Más respuestas (1)
Coco
el 22 de Jul. de 2019
0 votos
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!