how can I show a photo by 10 seconds in matlab gui?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tugba Ergin
el 24 de En. de 2019
how can I show a photo by 10 seconds in matlab gui then the second photo go on?
3 comentarios
Respuesta aceptada
Luna
el 24 de En. de 2019
Editada: Luna
el 29 de En. de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!