Simply EEGLAB

Importing raw files: EDF, BDF & BrainVision

Station 2 · Lesson 1 · EEGLAB 2026.1

In the GUI

  1. Yes
  2. Load data using BIOSIG -- pop_biosig()
  3. OK
  4. Name it: S001R03
  5. Save it as file: S001R03.set
  6. OK

Script

[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;
dataFolder = 'C:\Users\me\Documents\eeg-course';
if ~exist('sopen', 'file')
    plugin_askinstall('Biosig', 'sopen', true);
end
EEG = pop_biosig(fullfile(dataFolder, 'S001R03.edf'));
[ALLEEG, EEG, CURRENTSET] = pop_newset(ALLEEG, EEG, 0, ...
    'setname', 'S001R03', 'gui', 'off');
EEG = pop_saveset(EEG, 'filename', 'S001R03.set', 'filepath', dataFolder);
eeglab redraw;

Which value should I choose?

Your systemFormatPluginMenuFunction
Many clinical and research systems, PhysioNet, and g.tec (GDF files)EDF, EDF+ or GDF: .edf, .gdfBiosigFrom EDF/EDF+/GDF files (BIOSIG toolbox)pop_biosig
BioSemiBDF: .bdfBiosigFrom Biosemi BDF file (BIOSIG toolbox)pop_biosig with 'ref'
Brain ProductsBrainVision: .vhdr, .vmrk and .eegbva-ioFrom Brain Vis. Rec. .vhdr file (after installation: From Brain Vis. Rec. .vhdr or .ahdr file)pop_loadbv
EGI / MagstimMFF: a .mff foldermffmatlabioImport Magstim/EGI .mff filepop_mffimport
Neuroscan.cntneuroscanioFrom Neuroscan .CNT filepop_loadcnt
ANT Neuro (eego)EEProbe .cntANTeepimportFrom ANT EEProbe .CNT filepop_loadeep_v4
Any system recorded through Lab Streaming Layer (LSL)XDF: .xdfxdfimportFrom .XDF or .XDFZ filepop_loadxdf
Any system that exports the signal as text or numbers, or data you already have in MATLABASCII or float file, or a MATLAB arraynone, built into EEGLABFrom ASCII/float file or MATLAB arraypop_importdata
FieldValueWhy
Import EDF+ annotationsTicked (default)In EDF+ files, events come from the annotations. If you untick it, you lose the events.
Reference chan(s) indices - recommended for BIOSEMIEmpty for EDF, a reference channel for BDFThe pop_biosig help page warns that BioSemi data are recorded reference-free and lose about 40 dB of signal-to-noise ratio if left without a reference. This is a temporary reference; you choose the final one in the re-referencing lesson.

Check

  • The main window
  • From the Command Window
  • The events
  • By eye
  • The saved file

For your Methods

EEG recordings in EDF+ format (64 channels, 160 Hz) were imported into EEGLAB 2026.1 with pop_biosig (Biosig plugin [version]), and event markers were read from the EDF+ annotations.

Full lesson: https://simplyeeglab.pages.dev/en/lesson/import-raw/

Content license: CC BY-NC-SA 4.0 · MIT (code)

An independent learning site, not affiliated with EEGLAB or SCCN.