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

3 次查看(过去 30 天)
how can I show a photo by 10 seconds in matlab gui then the second photo go on?
  3 个评论
John D'Errico
John D'Errico 2019-1-24
It would seem pause(10) might be a useful idea to start.
Tugba Ergin
Tugba Ergin 2019-1-24
thank you.. What do I need to do to show only the picture on the screen without any toolbar or anything?

请先登录,再进行评论。

采纳的回答

Luna
Luna 2019-1-24
编辑:Luna 2019-1-29
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by