Station 1 · Lesson 2

The EEGLAB window & menus

Core12 minBefore this lesson: Installing EEGLAB & pluginsPrint the card
Starts from: eeglab_data.set (D1) · Nothing yet: the data as downloaded.Download the data (opens in a new tab)
Script to reach this state
MATLAB
[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;

The idea in brief

The EEGLAB main window is your dashboard. From it you open data, apply every processing step, and read a summary of the current datasetOne EEG data file loaded in EEGLAB together with its information..

Before and after

Before / After

The EEGLAB main window before any dataset is opened: it shows "No current dataset" and a list of suggested first steps.
Before loading data, EEGLAB 2026.1Screenshot of the EEGLAB interface (SCCN)

Image coming soon.

After: the same EEGLAB main window after opening eeglab_data.set. At the top the line #1: Continuous EEG Data, then a Filename line, and below them the lines with their values: Channels per frame = 32, Frames per epoch = 30504, Epochs = 1, Events = 154, Sampling rate (Hz) = 128, Epoch start (sec) = 0.000, Epoch end (sec) = 238.305, Reference = unknown, Channel locations = Yes, ICA weights = No, Dataset size (Mb). Each line carries a small number matching a row in the “Which value should I choose?” table. Same window size and frame as the “before” image exactly. Real screenshot from EEGLAB 2026.1 (source: eeglab-ui).

Your next questions, each answered in its own section:

Why do I need this step?

The reasons in detail, and the terms you need

Before any processing, you need to know what you opened: how many channels, at what sampling rateThe number of samples recorded per second on each channel., and for how many minutes. These numbers change with each step, and watching them is the fastest way to catch a mistake.

In this lesson we open the official EEGLAB sampleA single value of the signal at one point in time., eeglab_data.set. It ships with EEGLAB in the sample_data folder, so there is nothing to download.

How do I do it in EEGLAB?

9 steps in the menus

1. Meet the seven menus

Start eeglab. The window bar has seven menus, roughly in the order you use them:

menuA list of commands that opens from its name at the top of the window.What it holds
FileOpening, importing and saving data, plugins, and preferences.
EditDataset info, events, channelThe signal recorded from one electrode, as shown in EEGLAB. locations, and selecting part of the data.
ToolsProcessing steps: filteringApplying a filter to the data., ICAA method that separates the recording into independent sources, some brain and some artifact., epoching and more.
PlotPlots: the signalValues that change over time, such as the voltage recorded on a channel., the spectrumHow a signal's strength is distributed across frequencies., and scalp maps.
StudyAnalyzing a group of participants together (station 8).
DatasetsSwitching between the datasets open in memory.
HelpDocumentation and function help.

Most menus are greyed out for now, because they need an open dataset.

2. Open the dataset

  1. Open File then Load existing dataset.
  2. A file selection window opens. Go into the EEGLAB folder, then the sample_data folder.
  3. Select eeglab_data.set and click Open.

The main window fills with the dataset summary, and the menus become available.

3. Browse the signal

  1. Open Plot then Channel data (scroll).
  2. A scrolling window opens: each horizontal line is a channel, and the horizontal axis is time in seconds.
  3. Move with the arrow buttons at the bottom: the single arrow (> or <) moves one second, and the double arrow (>> or <<) moves almost a full window.
  4. Zoom the signal in or out with the + and - buttons. The number next to them is the spacing between channels in microvolts.
  5. The colored vertical lines are the events, with each eventA marker in the recording that flags a moment of interest, such as a stimulus.’s name above it (square or rt).
  6. To change the time window length or the number of channels shown, use Settings then Time range to display inside the scrolling window.

Image coming soon.

The Channel data (scroll) window after opening eeglab_data.set: channel names on the left, vertical event lines for square and rt, the four arrow buttons for moving at the bottom, and the scale box between the + and - buttons. Arrows mark one channel, one event, the move buttons, and the scale. Real screenshot from EEGLAB 2026.1 (source: eeglab-ui).

How do I write it as code?

The same steps in 10 lines of MATLAB
MATLAB
% Start EEGLAB and get its main variables
[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;

% Load the sample dataset that ships with EEGLAB
sampleFolder = fullfile(fileparts(which('eeglab')), 'sample_data');
EEG = pop_loadset('filename', 'eeglab_data.set', 'filepath', sampleFolder);

% Register it in EEGLAB and refresh the main window
[ALLEEG, EEG, CURRENTSET] = pop_newset(ALLEEG, EEG, 0, 'gui', 'off');
eeglab redraw;

% Scroll through the channel data
pop_eegplot(EEG, 1, 1, 1);
  • fileparts(which('eeglab')) returns the EEGLAB folder wherever you installed it, so the scriptA MATLAB file of commands that runs processing steps in order. works on any computer.
  • pop_newset adds the dataset to EEGLAB’s list of datasets ('gui', 'off' skips the naming window), and eeglab redraw refreshes the main window. EEGLAB uses the same function when you open a dataset from File > Load existing dataset.

Which value should I choose?

Suitable values for your analysis goal

There is no value to choose here. What matters is reading the main window correctly. This is what each line means, and its value in the tutorial dataset:

LineMeaningValue in eeglab_data.set
Channels per frameNumber of channels32
Frames per epochNumber of samples per channel (for continuous data: the whole recording)30504
EpochsNumber of segments. A value of 1 means continuous data that has not been epoched1
EventsNumber of events154
Sampling rate (Hz)Sampling rate: samples per second128
Epoch start (sec) and Epoch end (sec)Start and end of the data in seconds0.000 and 238.305
ReferenceThe referenceThe point against which each channel's voltage is measured. the channels were recorded againstunknown: EEGLAB does not know this file’s reference, although it was recorded with a mastoid reference. You will come back to this in the re-referencing lesson
Channel locationsDo the channels have positions on the head?Yes
ICA weightsHas ICA been computed for this dataset?No

Recording length = number of samples ÷ sampling rate = 30504 ÷ 128 = 238.3 seconds, about 4 minutes. This is roughly the number in Epoch end (sec).

How do I check it worked?

4 quick checks
  1. The first line of the main window starts with #1: followed by the dataset name Continuous EEG Data.
  2. The values match the table above: 32 channels, 128 Hz, 30504 samples, and 154 events.
  3. The scrolling window shows 32 channels with their names, and the square and rt event lines appear in it.
  4. From the Command Window: type EEG.setname. It should print 'Continuous EEG Data'.

What mistakes do people make?

5 mistakes and how to avoid them
  • Menus are grey and do not respond. You have not opened a dataset yet, or the open dataset does not suit that menu. Open a dataset first.
  • Reading Frames per epoch as time. It is a sample count, not seconds. Divide it by the sampling rate to get seconds.
  • Picking the .fdt file in the open window. Always open the .set file. The .fdt file holds the signal only, and EEGLAB reads it automatically with the .set file (details in the .set and .fdt lesson, an optional lesson).
  • Saving over the sample file. Do not use File then Resave current dataset(s) after changing eeglab_data.set. Save any modified copy under a new name in your own folder with File then Save current dataset as, so the original sample stays intact for the other lessons.
  • Closing the main window by mistake. The data stays in memory. Type eeglab redraw in the Command Window to bring the window back with the same data.

Where can I read more?

2 sources, official docs first

Written for EEGLAB 2026.1 · 2026-10-28

Need help?

Ask, share feedback, or report an error