-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheegplugin_headModel.m
23 lines (21 loc) · 971 Bytes
/
eegplugin_headModel.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% eegplugin_headModel() - Head model plugin for surface-based forward and inverse source modelin of EEG data.
% Usage:
% >> eegplugin_headModel(fig, trystrs, catchstrs);
%
% Inputs:
% fig - [integer] eeglab figure.
% trystrs - [struct] "try" strings for menu callbacks.
% catchstrs - [struct] "catch" strings for menu callbacks.
%
% Author: Alejandro Ojeda, SCCN, INC, UCSD, 2013
%
% See also: eeglab()
function vers = eegplugin_headModel(fig,try_strings, catch_strings)
vers = 'headModel1.0.2';
p = fileparts(which('eegplugin_headModel'));
addpath(genpath(p));
h = findobj(gcf, 'tag', 'tools');
hmMenu = uimenu( h, 'label', 'headModel');
uimenu( hmMenu, 'label', 'Compute BEM forward model','callback','EEG = pop_forwardModel(EEG);');
uimenu( hmMenu, 'label', 'View head model','callback','hm=headModel.loadFromFile(EEG.etc.src.hmfile);hm.plot;');
uimenu( hmMenu, 'label', 'Documentation','callback','web(''https://github.com/aojeda/headModel'')');