How can I pull a random image to display, from a folder of images using Psychtoolbox?
古いコメントを表示
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!!
採用された回答
その他の回答 (1 件)
Sean de Wolski
2014 年 11 月 4 日
0 投票
Perhaps use randi to generate a random index between 1 and the number of files.
カテゴリ
ヘルプ センター および File Exchange で Image display and manipulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!