[Eeglablist] Biosemi channel locations for 32+2 layout

Daniele Marinazzo daniele.marinazzo at gmail.com
Thu Aug 24 12:11:47 PDT 2017


I did it a while ago, I remember is a bit tricky. There is probably a
better way, but this should be what it worked for me

the file biosemi_eloc.txt must contain " Electrodes _ _" in the first line,
then the coordinates from  the excel file

then I did this (for the 128 channels)

>pop_chanedit(readlocs(biosemi_eloc.txt', 'format', { 'labels'
'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1));

save as .ced (eg. converted_from_excel.ced)

from matlab Import data -> select the .ced file, import as column vectors

>for i=1:129;disp([num2str(i) '  ' num2str(sph_theta(i))  '  '
num2str(radius(i)) ' ' EEG.chanlocs(i).labels]);end %change this if you
have a different number of channels

%N.B. here channel 129 is the external 5, which is in polar coordinates in
the excel file, then you need to reorganize the file adding the four EOG
channels. Or you can just use the first 128 channels, and then paste the
five externals, for which the location is not so important.

Copy what is displayed on the screen, paste it in an empty document, save
with a convenient name (eg. mylocations.locs. Then you can paste the EOG
channel locations etc.

Also, if you want to have the channels with their names (Cz, etc) and not
as A, B, C, D you can change the names in the EEGlab structure


either manually, or with a loop in which you read the new locations.



On Thu, Aug 24, 2017 at 8:47 AM, mahsa shalchy <mahsa.shalchy at gmail.com>

> Dear all,
> I extracted channel locations using Biosemi excel file (and saved it to a
> text file) and then tried to edit the locations using the following command:
> pop_chanedit(readlocs('biosemi_eloc.txt', 'format', { 'labels' 'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1));
> However, I could not find a way to get it to work. Would you let me know what is the next step?
> Many thanks,
> Mahsa
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.
> ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170824/d126ffc8/attachment.html>

More information about the eeglablist mailing list