Baseline correction and re-referencing for ERPs

Thank you Francois. That makes sense.

My first step after importing raw files was the band-pass filter using the script below. I then resampled. I obtained a new folder with a new raw file titled 'Raw | band(0.5-30Hz) | resample(256Hz)'.

% Process: Band-pass:0.5Hz-30Hz
sFiles = bst_process('CallProcess', 'process_bandpass', sFiles, , ...
'sensortypes', 'EEG', ...
'highpass', 0.5, ...
'lowpass', 30, ...
'tranband', 0, ...
'attenuation', 'strict', ... % 60dB
'ver', '2019', ... % 2019
'mirror', 0, ...
'read_all', 1);

Sorry this graph is the average of single trials for one subject.