Show Images with Filenames in Cell Array

1 view (last 30 days)
Nathan
Nathan on 24 Jul 2019
Answered: Rik on 24 Jul 2019
I have a 1x40 cell array 'q' which contains 40 filenames (of images), each in its own cell.
I would like to use 'imshow' to sequentially display all of the images with the filenames stored in 'q'.
So far I have tried the code shown below, but it doesn't work. Any help would be much appreciated!
imshow(q{1,1:40})

Answers (1)

Rik
Rik on 24 Jul 2019
You will have to program that sequential behavior yourself.
for n=1:numel(q)
IM=imread(q{n});
imshow(IM)
drawnow,pause(0.5)
end

Community Treasure Hunt

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

Start Hunting!