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

2 views (last 30 days)
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);

Answers (0)

Community Treasure Hunt

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

Start Hunting!