[FieldTrip] Align electrods to headmodel with method 'interactiv'

Steinmann, Iris iris.steinmann at med.uni-goettingen.de
Tue Feb 16 18:07:49 CET 2016


Hi FieldTripper,

I want to do source reconstruction with my EEG data and try to align my electrodes to the headmodel (calculated with my own MR data)
(following this description: http://www.fieldtriptoolbox.org/example/align_eeg_electrode_positions_to_bem_headmodel)

I run the ft_electroderealign function with the following options:

cfg = [];
cfg.method    = 'interactive';
cfg.elec      = elec;
cfg.headshape = vol.bnd(1);
elec_new = ft_electroderealign(cfg);

But all I get is a figure showing a coordinate system with my electrodepositions. The scull saved in vol.bnd(1) is not plotted.
(I attached a jpg of the figure).
The MATLAB panel asked me: "Do you want to change the anatomical labels for the axes [Y, n]? "
If I say 'no', I get the following error:

Undefined function or variable 'template'.
Error in ft_electroderealign (line 244)
  for j=1:length(template)

I tried the ft_electroderealign function with the cfg.method = 'fiducials', but ended up with the same figure and the same question in
the MATLAB panel.

Would be great if someone could help me to figure out what's going wrong here and how I can align my electrodes to the headmodel.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160216/0af6c655/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coordinateSystemElectrodePositions.jpg
Type: image/jpeg
Size: 22433 bytes
Desc: coordinateSystemElectrodePositions.jpg
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160216/0af6c655/attachment-0001.jpg>


More information about the fieldtrip mailing list