image thumbnail

Topographic EEG/MEG plot

version 1.5 (20.4 KB) by Víctor Martínez-Cagigal
This function provides a topographical map of the head over desired points given by 'ch_list' and their assigned 'values'.

928 Downloads

Updated 23 Nov 2020

View License

IMPORTANT: Download the .zip package in order to get the .mat locations of the default channels.

The 'plot_topography' function plots a topographical EEG/MEG map of the head over the desired points (ch_list) and their assigned (values). Note that the channels must be introduced according to their names, following the 10-10, 10-20 or the Yokogawa system. If you want to use custom locations, you must indicate the path of a locations.mat file (see the header of the function for further instructions).

Input parameters:
- ch_list: Channel list in cell-array. Use the string 'all' for displaying all channels available. Note that 'z' indicator should be in lower case. Example: ch_list = {'Fpz','Fz','Cz','Pz','Oz'};
- values: Numeric vector that contains the values assigned to each channel.
- make_contour: (Optional, default: false) Boolean that controls if the contour lines should be plotted.
- system: (Optional) Measurement system as a string: '10-20' (default), '10-10', 'yokogawa', custom path or table.
- plot_channels: (Optional, default: false) Boolean that controls if the electrodes should be plotted.
- plot_clabels: (Optional, default: false) Boolean that controls if the text labels of each electrode should be plotted.
- INTERP_POINTS:(Optional, default: 1000) No. of interpolation points. The lower N, the lower the resolution and the faster the computation.

Example of use:
plot_topography('all', rand(1,81));

Cite As

Víctor Martínez-Cagigal (2021). Topographic EEG/MEG plot (https://www.mathworks.com/matlabcentral/fileexchange/72729-topographic-eeg-meg-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

plot_topography