Psychtoolbox: present images not in random order

조회 수: 2 (최근 30일)
Susanne Dietrich
Susanne Dietrich 2019년 11월 12일
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개)

카테고리

Help CenterFile Exchange에서 Image display and manipulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by