Get the Books

Enjoying these notebooks and want to support the work? Check out the practical books on Data Science, Visualisation, and Evolutionary Algorithms.

Get the books

Event Related Potentials

Preamble

In [1]:
import mne

Dataset

Download sample data from Mike Cohen.

In [5]:
epochs = mne.io.read_epochs_eeglab('sampleEEGdata.mat')
Extracting parameters from sampleEEGdata.mat...
99 matching events found
No baseline correction applied
Not setting metadata
0 projection items activated
Ready.
<ipython-input-5-4126a73ca07d>:1: RuntimeWarning: At least one epoch has multiple events. Only the latency of the first event will be retained.
  epochs = mne.io.read_epochs_eeglab('sampleEEGdata.mat')

Plotting

In [14]:
epochs.plot_image(picks=['P1'],cmap='Spectral_r');
In [21]:
epochs.plot_image(picks=['T8','T7'],cmap='Spectral_r');

Support this work

You can support this work by getting the e-books. This notebook will always be available for free in its online format.