How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
0 commentaires
Réponses (1)
Stephen23
le 9 Sep 2019
Modifié(e) : Stephen23
le 9 Sep 2019
D = 'relative or absolute path to the specific directory';
S = dir(fullfile(D,'*.png'));
C = {S.name} % output cell array
1 commentaire
Walter Roberson
le 10 Sep 2019
C = fullfile(D, {S.name}); % output cell array
to get the fully-qualified names.
Voir également
Catégories
En savoir plus sur File Operations 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!