How to exclude a file type when using copyfile?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Karim
il 11 Nov 2014
Modificato: Image Analyst
il 11 Nov 2014
I need to create a script that copies all files from one directory to another, excluding a certain file type (in this case, *.bin)
Additionally, it is not sufficient to simply copy the files over, I need to keep the folder hierarchy structurally the same.
How can I do this?
0 Commenti
Risposta accettata
Image Analyst
il 11 Nov 2014
Modificato: Image Analyst
il 11 Nov 2014
Use dir() as shown in the second code sample in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F. Combine with fileparts() and strcmpi() to exclude bin extensions.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB 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!