how can I show a photo by 10 seconds in matlab gui?

how can I show a photo by 10 seconds in matlab gui then the second photo go on?

3 Comments

What have you done so far? Could you please share?
It would seem pause(10) might be a useful idea to start.
thank you.. What do I need to do to show only the picture on the screen without any toolbar or anything?

Sign in to comment.

 Accepted Answer

Luna
Luna on 24 Jan 2019
Edited: Luna on 29 Jan 2019
Try this:
folderpath = 'C:\Users\...\Desktop\walpapers'; % folder of your jpg files
directoryContent = dir([folderpath,'\*.jpg']); % list of the files which have .jpg extension
figure; % opens a figure
for i = 1 : length(directoryContent) % loop through the struct
imshow(fullfile(folderpath,directoryContent(i).name)) % shows image
pause(10); % waits for 10 secs
end

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 24 Jan 2019

Edited:

on 29 Jan 2019

Community Treasure Hunt

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

Start Hunting!