フィルターのクリア

How to access .jpg files from a folder and save names of .jpg files

5 ビュー (過去 30 日間)
Taylor Nichols
Taylor Nichols 2018 年 3 月 21 日
編集済み: Jan 2018 年 3 月 21 日
I need to access a folder that contains multiple jpeg files. I now the name of the folder, but the jpeg files are randomly named so I need to find a way to figure out the names of the files so I can open them.
Thanks ahead for the help
  1 件のコメント
Stephen23
Stephen23 2018 年 3 月 21 日
How to access files in a loop is explained in the MATLAB documentation:
Alternatively you can get the user to select the filenames, e.g.:

サインインしてコメントする。

採用された回答

Jan
Jan 2018 年 3 月 21 日
編集済み: Jan 2018 年 3 月 21 日
FileList = dir(fullfile(FolderName, '*.jpg'));
File = fullfile(FolderName, {FileList.name});
Now File is a cell string containing the absolute paths. You can open these files in a loop now.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by