Extract .txt files from a list
Afficher commentaires plus anciens
Hi,
I am trying to extract .txt files from a list of files I created into a cell array. From there I want to put them in a directory that feeds into a loop. Can you help please?
Thanks
3 commentaires
Adam
le 9 Juin 2015
doc fileparts
should help. Just test the 'ext' output from that with '.txt' for each file in your array.
Walter Roberson
le 9 Juin 2015
Yes, and notice that the ext will include the '.' so Adam is correct in saying to compare against '.txt' rather than 'txt'
Yewande Oni
le 10 Juin 2015
Réponse acceptée
Plus de réponses (0)
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!