<div dir="ltr">Hi<div><br></div><div>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</div><div><br></div><div>the file <span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">biosemi</span><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">_eloc.txt </span>must contain " Electrodes _ _" in the first line, then the coordinates from  the excel file</div><div><br></div><div>then I did this (for the 128 channels)</div><div><div><br></div><div>>pop_chanedit(readlocs(<span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">biosemi</span><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">_eloc.txt</span>', 'format', { 'labels' 'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1));</div><div><br></div><div>save as .ced (eg. converted_from_excel.ced)</div><div><br></div><div>from matlab Import data -> select the .ced file, import as column vectors </div><div><br></div><div>>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</div><div><br></div><div>%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.</div><div><br></div><div>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.</div><div><br></div><div>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</div><div><br></div><div>EEG.chanlocs(i).labels</div><div><br></div><div>either manually, or with a loop in which you read the new locations.</div></div><div><br></div><div>cheers</div><div><br></div><div>d.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 8:47 AM, mahsa shalchy <span dir="ltr"><<a href="mailto:mahsa.shalchy@gmail.com" target="_blank">mahsa.shalchy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif" style="font-size:12.8px">Dear all,</font><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif">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:</font></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">pop_chanedit(readlocs('biosemi<wbr>_eloc.txt', 'format', { 'labels' 'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1));</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">However, I could not find a way to get it to work. Would you let me know what is the next step?</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Many thanks,
Mahsa</font></pre></div></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br></blockquote></div><br></div>