diff --git a/private/load_events.m b/private/load_events.m index d0ca2ca..599b09b 100644 --- a/private/load_events.m +++ b/private/load_events.m @@ -20,7 +20,7 @@ % Randomly select two different options from 'left', 'up', and 'right' all_choices = {'left', 'up', 'right'}; %selected_choices = datasample(all_choices, 2, 'Replace', false); % Randomly select 2 options without replacement - selected_choices = {all_choices(block_choices(trial,1)), all_choices(block_choices(trial,2))}; + selected_choices = [all_choices(block_choices(trial,1)), all_choices(block_choices(trial,2))]; i = i+1; timing(i).event_name = 'choice'; @@ -28,7 +28,7 @@ timing(i).dur = 2; % Set chance values depending on the block - timings(i).chance = block_probabilities(block); + timing(i).chance = block_probabilities(block,:); timing(i).max_rt = timing(i).dur; timing(i).i = i;