loading all files from a user specified folder into a gui
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
Is there a way for a GUI to allow a user to select a folder of text files on their own computer and have the GUI work on all the txt files within that folder?
Best regards
Steve
0 commentaires
Réponse acceptée
Plus de réponses (1)
Matt J
le 19 Jan 2018
Modifié(e) : Matt J
le 19 Jan 2018
1 commentaire
Adam
le 19 Jan 2018
Combined with something like:
info = dir( folder );
filenames = { info.name };
[~,~,ext] = cellfun( @fileparts, filenames , 'UniformOutput', false )
txtIdx = strcmp( ext, { '.txt' } )
filenames = filenames( txtIdx )
to give you all the filenames of the desired type from the directory.
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!