This code accompanies the data published with the paper:
The data can be downloaded directly from here.
After running this code on a dataset you will have the following arrays:
full_data_new- all EEG data and trigger channel (last channel)
time- time progress during the experiment. Sampling rate is 256Hz. Each time point corresponds to an EEG sample. Time t=0 corresponds to the beginning of recording.
Trig- same as trigger channel (last channel in
full_data_new). Trigger codes:
514- beginning of measurement,
200- end of block
2- high frequency,
4- low frequency
If using the corresponding
stimSeq file, note that in a few datasets
there are ~1-2 trials missing (missed triggers) and should be taken care of
(should be manually removed in the analysis)