Back to the main page.

Bug 1763 - defining electrode position with fieldname 'elecpos' doesn't work

Status CLOSED FIXED
Reported 2012-10-03 15:23:00 +0200
Modified 2018-03-10 21:59:53 +0100
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 minor
Assigned to: Lilla Magyari
URL:
Tags:
Depends on:
Blocks:
See also: http://bugzilla.fcdonders.nl/show_bug.cgi?id=1306

Lilla Magyari - 2012-10-03 15:23:22 +0200

hi, the help of ft_prepare_neighbours points to ft_datatype_sens for defining the structure with EEG electrode positions. ft_datatype_sens refers also to the .elecpos field The structure for EEG or ECoG channels contains sens.label = Mx1 cell-array with channel labels sens.chanpos = Mx3 matrix with channel positions sens.tra = MxN matrix to combine electrodes into channels sens.elecpos = Nx3 matrix with coil positions But if you give an elec structure with .elecpos field, for example, to ft_topoplotER, it will give an error: cfg=[]; cfg.elec; ft_topoplotER(cfg,data) where elec is elec.label elec.elecpos It works well, if elec is: elec.label elec.chanpos (or .pnt) Lilla


Jan-Mathijs Schoffelen - 2012-11-28 14:47:14 +0100

elec should always contain a chanpos, I guess elecpos is optional.


Lilla Magyari - 2012-11-29 11:41:39 +0100

(In reply to comment #1) ok. can I write this then to the reference doc of ft_datatype_sens?


Lilla Magyari - 2013-07-23 22:16:49 +0200

(In reply to comment #2) I have found this FAQ which describes the difference between chanpos and elecpos. http://fieldtrip.fcdonders.nl/faq/how_are_electrodes_magnetometers_or_gradiometers_described?s[]=chanpos So, I think I am going to close this bug. Lilla