Skip to content

Commit

Permalink
🎨 move prob out of case statment for future shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed Sep 24, 2024
1 parent 1555949 commit 412f414
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions private/load_events.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

nblocks = 4;
ntrials = [36,36,72,72];
% TODO: shuffle left and up so left doesn't always start as bad
block_probabilities = [ ...
... left, up, up, right; since rtbox has 2 options for up
.2,.5,.5,1;
0.5,0.2,0.2,1;
0.75,0.75,0.75,0.75;
1,1,1,1];
i = 0;

for block = 1:nblocks
Expand All @@ -21,16 +28,7 @@
timing(i).dur = 2;

% Set chance values depending on the block
if block == 1
timing(i).chance = [.2,.5,.5,1]; % left, up, up,right
elseif block == 2
timing(i).chance = [0.5,0.2,0.2,1]; % left, up, up,right since rtbox has 2 options for up
elseif block == 3
timing(i).chance = [0.75,0.75,0.75,0.75]; % left, up,up, right
elseif block == 4
timing(i).chance = [1,1,1,1]; % left, up,up, right

end
timings(i).chance = block_probabilities(block);

timing(i).max_rt = timing(i).dur;
timing(i).i = i;
Expand Down

0 comments on commit 412f414

Please sign in to comment.