extracting files from multiple directories
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Camilla Santicoli
il 8 Mag 2015
Commentato: Image Analyst
il 9 Mag 2015
Hello everybody! I have a simple problem to solve: I have 100 folders and each folder contains around 2000 files, called v1,v2,v3...and the names are the same for every folder. How can I extract specific files (e.g v2-v10) in every folder and organize them such that all the v1 are in one new folder and the v2 in a second folder? Thank you
8 Commenti
Image Analyst
il 9 Mag 2015
If that worked, maybe you could vote for my answer or mark it "Accepted".
Risposta accettata
Walter Roberson
il 9 Mag 2015
You can use the outline in that to loop over directories. And then inside any one directory you can match the file names to find the ones of interest and handling them.
0 Commenti
Più risposte (1)
Image Analyst
il 9 Mag 2015
See my attached demo where I recurse into all subfolders of a folder and list the files. You could then do anything you want with each file. It will be easy for you to adapt this to your specific folder names.
0 Commenti
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!