how can I show a photo by 10 seconds in matlab gui?
조회 수: 2 (최근 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!