How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?
0 Commenti
Risposte (1)
Stephen23
il 9 Set 2019
Modificato: Stephen23
il 9 Set 2019
D = 'relative or absolute path to the specific directory';
S = dir(fullfile(D,'*.png'));
C = {S.name} % output cell array
1 Commento
Walter Roberson
il 10 Set 2019
C = fullfile(D, {S.name}); % output cell array
to get the fully-qualified names.
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!