Reading image files from different folders ?

1 回表示 (過去 30 日間)
chinnurocks
chinnurocks 2016 年 8 月 24 日
回答済み: Azzi Abdelmalek 2016 年 8 月 24 日
Hi, I have images in each of the 10 folders. I have the names of the folder in a 10*1 structure variable. How can I read the images from those folders just by knowing their names? I know that we can use dir('path') will work. But how can we give the names of the folder automatically ? Please help

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 24 日
f=struct('name',{'D:\A1' 'D:\A3' 'D:\A3'}) % Example
for k=1:numel(f)
path=f(k).name
p=dir(path)
%do
end

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by