フィルターのクリア

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 Center および File ExchangeFile Operations についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by