Simply EEGLAB
Source localization with DIPFIT
Station 10 · Lesson 1 · EEGLAB 2026.1
In the GUI
- FileManage EEGLAB extensionsYes
eeglabFieldtrip-lite extension is not installed. Do you want to download it now? - EditChannel locations
- Look up locsuse MNI coordinate file for BEM dipfit modelOk
- Ok
Channel lookup: no location for EOG1,EOG2 - ToolsSource localization using DIPFITHead model and settings
- Select a head modelTemplate Boundary Element Model (MNI)
- Matrix to align chan. locs. with head model
-1.5708 - Ok
Warning: 2 channels without coordinates removed from dipole fitting - ToolsSource localization using DIPFITComponent dipole autofit
- Component indices (default:all)
- Rejection threshold RV (%)
100 - Plot resulting dipoles using dipplot (check)Ok
- PlotComponent mapsIn 2-DPlot associated dipole(s) (if present)
1:12 - ToolsSource localization using DIPFITComponent dipole plotPlot summary modeOk
- FileSave current dataset as
D1_dipfit.set
Script
if ~exist('ft_dipolefitting', 'file')
plugin_askinstall('Fieldtrip-lite', 'ft_dipolefitting', true);
end
EEG.setname = 'D1 dipfit';
EEG = pop_chanedit(EEG, 'lookup', 'standard_1005.elc');
EEG = pop_dipfit_settings(EEG, 'model', 'standardBEM');
disp(EEG.dipfit.coord_transform); % expect 0 0 0 0 0 -1.5708 1 1 1
EEG = pop_multifit(EEG, [], 'threshold', 100);
rv = 100 * [EEG.dipfit.model.rv];
fprintf('IC %2d: RV = %5.1f%%\n', [1:numel(rv); rv]);
fprintf('%d of %d components below 15%% RV\n', sum(rv < 15), numel(rv));
pop_topoplot(EEG, 0, 1:12, 'D1 dipfit', 0, 1);
pop_dipplot(EEG, 1:numel(EEG.dipfit.model), 'normlen', 'on', 'summary', 'on', 'num', 'on');
EEG = pop_saveset(EEG, 'filename', 'D1_dipfit.set', 'filepath', pwd);Which value should I choose?
| Setting | Value |
|---|---|
| Head model | Template Boundary Element Model (MNI) |
| Dipole acceptance limit | Residual variance below 15% |
| Rejection threshold during the fit | 100% while learning |
| Number of dipoles | One; two symmetric dipoles only when the map is symmetric across hemispheres |
For your Methods
Equivalent current dipoles were fitted to each independent component (pop_multifit, dipfit plugin 5.6, EEGLAB 2026.1) using the template boundary element head model (MNI) and template electrode positions (standard_1005); components with residual variance above 15% were considered non-dipolar.