Simply EEGLAB
Baseline correction
Station 5 · Lesson 2 · EEGLAB 2026.1
In the GUI
- ToolsRemove epoch baseline
- Baseline removal - pop_rmbase()Baseline latency range ([min max] in ms) ([ ] = whole epoch):
-1000 0-200 0 - Or remove baseline points vector (ex:1:56):
- Channel type(s)OR channel(s) (default all)
- OkName it:Overwrite it in memory (set=yes; unset=create a new dataset)Ok
D1 epochs bl
Script
EEG = pop_rmbase(EEG, [-200 0]);
EEG.setname = 'D1 epochs bl';
EEG = eeg_checkset(EEG);
blIdx = EEG.times >= -200 & EEG.times <= 0;
blMeans = mean(EEG.data(:, blIdx, :), 2);
fprintf('Baseline points: %d, largest baseline mean: %.2g uV\n', sum(blIdx), max(abs(blMeans(:))));Which value should I choose?
| Setting | Value |
|---|---|
| Baseline for ERP analysis | -200 to 0 ms |
| The whole pre-event period | -1000 to 0 ms |
| A very short period | 100 ms or less |
| Our path on this site | -200 to 0 ms |
For your Methods
Epochs were baseline-corrected by subtracting the mean voltage from -200 to 0 ms before stimulus onset (pop_rmbase, EEGLAB 2026.1).