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 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!