Commit 3ce62a9f authored by Julian Kosciessa's avatar Julian Kosciessa
Browse files

state 170911

parent d42ae6bd
load('/Volumes/LNDG/Julian/Projects/StateSwitch/C_Paradigm/StateSwitch/stimuli_corrJQK.mat')
info.combs = allcomb([1,2],[1,2],[1,2],[1,2]);
info.WordCategories = {'NoAnimal', 'animal'; 'twoSyllable', 'oneSyllable'; 'uneven', 'even'; 'noH', 'H'}; % yes option is always right, no option left
rng(170821, 'twister');
info.seedInfo = rng;
% select 4 stimuli from each category
info.numExtract = 4;
for indComb = 1:size(info.combs,1)
stims{indComb} = stimuli.(info.WordCategories{1,info.combs(indComb,1)}).(...
info.WordCategories{2,info.combs(indComb,2)}).(...
info.WordCategories{3,info.combs(indComb,3)}).(...
info.WordCategories{4,info.combs(indComb,4)});
% get random order
info.randomSelection{indComb} = randperm(numel(stims{indComb}));
% extract first four items
stimuli.(info.WordCategories{1,info.combs(indComb,1)}).(...
info.WordCategories{2,info.combs(indComb,2)}).(...
info.WordCategories{3,info.combs(indComb,3)}).(...
info.WordCategories{4,info.combs(indComb,4)}) = stims{indComb}(info.randomSelection{indComb}(1:info.numExtract));
end
save('/Volumes/LNDG/Julian/Projects/StateSwitch/C_Paradigm/StateSwitch/stimuliSelected.mat', 'info', 'stimuli')
function setup = StateSwitch_settingsResting(setup)
% settings for resting state eeg
setup.DEBUG = 0;
setup.opacity = .4;
setup.keyB = 1;
setup.ET.useET = 0;
setup.EEG.useEEG = 1;
setup.EEG.DIO.parallelTrigger = 1;
setup.EEG.DIO.protocolDynamic = 1;
setup.EEG.waitTrigEnc = .005; % wait 5 ms to ensure encoding of trigger
setup.MR.useMR = 0;
setup.ET.falsePupilRec = 'no';
setup.ET.ELdummymode = 0;
setup.disp = 1;
end
\ No newline at end of file
function setup = StateSwitch_settingsStroop(setup)
% settings for Stroop
setup.DEBUG = 0;
setup.opacity = .4;
setup.keyB = 1; % number of available keyboards
setup.ET.useET = 0;
setup.EEG.useEEG = 1;
setup.EEG.DIO.parallelTrigger = 1;
setup.EEG.DIO.protocolDynamic = 0;
setup.EEG.waitTrigEnc = .005; % wait 5 ms to ensure encoding of trigger
setup.MR.useMR = 0;
setup.ET.falsePupilRec = 'no';
setup.ET.ELdummymode = 0;
setup.disp = 1;
end
\ No newline at end of file
function setup = StateSwitch_settingsTask(setup)
% settings for task eeg
setup.DEBUG = 0;
setup.opacity = .4;
setup.keyB = 1;
setup.ET.useET = 1;
setup.EEG.useEEG = 1;
setup.EEG.DIO.parallelTrigger = 1;
setup.EEG.DIO.protocolDynamic = 1;
setup.EEG.waitTrigEnc = .005; % wait 5 ms to ensure encoding of trigger
setup.MR.useMR = 0;
setup.ET.falsePupilRec = 'no';
setup.ET.ELdummymode = 0;
setup.disp = 1;
end
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment