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, 100/200 - end of block
1/2 - high frequency, 3/4 - low frequencyIf 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)
Example:
load('S1\Data_S1.mat')
prepare_data_and_triggers_P300Dataset;