I'm trying to program an "alea command", in the way to introduce a random choice of stimuli, but ONLY for the first stimulus. You can see the basic script in the files ('Script Libet').
But the problem is this one :
The first stimulus must be random (the first position on the clock must vary), but the second, the third, etc must continue according to the first stimulus.
For example: if the first stimulus is Pos23, then must appear Pos24, Pos25, etc.
I have try that command, but without success.
for i=1:nItems
alea=randperm(60);
items=items(alea);
Screen('drawtexture', w, tex(i))
vbl=Screen(w, 'Flip', vbl+(2.5*cycleRefresh));
KbCheck;
end
Thank you :)