[Eeglablist] Import XY channel locations
Simon Kamronn
simon at kamronn.dk
Wed May 21 01:32:10 PDT 2014
Hi,
I'm trying to import channel locations from a Neuromag MEG scanner in XY
coordinates, but for some reason the conversion from Cartesian to polar and
spherical goes wrong.
The channel locations file is here:
https://github.com/FBK-NILab/DecMeg2014/blob/master/additional_files/Vectorv
iew-all.lay
and I'm reading the file using
[chNum,X,Y,Width,Height,Lbl,Rem] = textread(layout,'%f %f %f %f %f %q
%q');
EEG.chanlocs = struct('labels', Lbl, 'X', mattocell(X/max(X)), 'Y',
mattocell(Y/max(Y)), 'Z', mattocell(zeros(length(X),1)));
EEG=pop_chanedit(EEG,'convert','cart2all');
The 3D plot looks fine btw.
Best,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140521/46854590/attachment.html>
More information about the eeglablist
mailing list