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

조회 수: 2 (최근 30일)
Tugba Ergin
Tugba Ergin 2019년 1월 24일
편집: Luna 2019년 1월 29일
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