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

조회 수: 1 (최근 30일)
How do I access a specific directory so I can then retrieve images in that directory with a specific file extension?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by