Psychtoolbox: present images not in random order
2 views (last 30 days)
Show older comments
In each trial a sound file is followed by an image and the image is picked by a random number.
for trial=1:96
%pick a random number of two possibilities
randTextureNum = randi(2);
%use this number to take a picture
ourTexture = textures(randTextureNum);
end
%draw the picture
Screen('DrawTexture',wPtr, ourTexture, [], []);
Now, I like to present the images not randomly, but as they are arranged in the folder.
How can I change the randi(2) ?
Thanks
Susanne
0 Comments
Answers (0)
See Also
Categories
Find more on Image display and manipulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!