Getting error to read images from a folder using for loop.

1 次查看(过去 30 天)
I want to execute some algorithm by taking images simultaneously from a folder. I have used this code
list=dir('F:\myimages\*.jpg'); N=length(list)
for i=1:N
img{i} = imread(list(i).name);
figure,imshow(I{i})
end
I get following error
File "images.jpg" does not exist. error in img{i}= imread(list(i).name);

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by