How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?

1 Ansicht (letzte 30 Tage)
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?

Antworten (1)

Stephen23
Stephen23 am 9 Sep. 2019
Bearbeitet: Stephen23 am 9 Sep. 2019
D = 'relative or absolute path to the specific directory';
S = dir(fullfile(D,'*.png'));
C = {S.name} % output cell array

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by