How can I pull a random image to display, from a folder of images using Psychtoolbox?
Mostrar comentarios más antiguos
Hello,
I am trying to show an image, randomly selected from a folder of images. I'm using Psychtoolbox. How do I instruct it to pull an image randomly from the folder, to display on the screen? The images can be used more than once.
Thanks!!
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 4 de Nov. de 2014
0 votos
Perhaps use randi to generate a random index between 1 and the number of files.
Categorías
Más información sobre Image display and manipulation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!