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 Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by