Single Item Recognition Task. I need to create code for the "Test" portion of the experiment that is forced choice. I need to show them 24 targets and 24 foils...

1 view (last 30 days)
It needs to be random whether the a target of foil is on the left or right. I also need to create code that would allow participants to choose either left or right. Here is the code for the "Study" portion of the experiment.
listlength=24
studytime = 3
isi=.5
Words=textread( 'mf.txt' , '%s' , 'delimiter' , '\t' );
total_words = length(Words);
rand_order = randperm(total_words);
for i = 1: listlength; %displays words
stimulus = char(Words(rand_order(i)));%Randomize Words
t2= text(.4,.5,stimulus,'FontSize',20);
pause (studytime)
delete(t2)
pause(isi)
axis('off');
fprintf(fid, '%s\t%s\t\r\n' ,PN , i);
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!