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)
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?

Risposte (1)

Stephen23
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

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by