<div dir="ltr">Dear Tarik and experts,<div><br></div><div>The thing is my locations seem to work fine just before saving them as *.ced file. Also, as I try to save them as other types (loc,...) I'm getting the following error:</div><div><br></div><div><div>Cell contents reference from a non-cell array object.</div><div>Error in inputgui>outstruct (line 257)</div><div> else currentobj = allobj{index};</div><div>Error in inputgui (line 198)</div><div> instruct = outstruct(allobj); % Getting default values</div><div> in the GUI.</div><div>Error in pop_writelocs (line 148)</div><div> res = inputgui(geometry, listui,</div><div> 'pophelp(''writelocs'');', ...</div><div>Error in pop_chanedit (line 696)</div><div> com = pop_writelocs(chans); </div><div>Error using waitfor</div><div>Error while evaluating UIControl Callback</div><div><br></div><div><br></div><div>I would be grateful if someone could help me with this problem.</div><div><br></div><div>Many thanks,</div><div>Mahsa</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 1:54 PM, Tarik S Bel-Bahar <span dir="ltr"><<a href="mailto:tarikbelbahar@gmail.com" target="_blank">tarikbelbahar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)">Hello Mahsa, </div><div class="gmail_default" style="color:rgb(51,51,153)">Nice try, looks like you're almost there.</div><div class="gmail_default" style="color:rgb(51,51,153)">In the future send questions to eegablist list and if you wish CC me.</div><div class="gmail_default" style="color:rgb(51,51,153)">Beware of doing things from command line only.</div><div class="gmail_default" style="color:rgb(51,51,153)">However, you should be able to </div><div class="gmail_default" style="color:rgb(51,51,153)">1. Use the code line and file you have developed</div><div class="gmail_default" style="color:rgb(51,51,153)">2. Then save the file (via command line or gui)</div><div class="gmail_default" style="color:rgb(51,51,153)">3. Then close eeglab, then restart eeglab, then reopen the file form the GUI.</div><div class="gmail_default" style="color:rgb(51,51,153)">4. Then see if the locations still seem good by jsut plotting the channel locations (rather than editing the channel locations).</div><div class="gmail_default" style="color:rgb(51,51,153)">5. If the saved file is okay, then you might be good to go.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*the issue your're having is about how the coordinates numbers are coded. You would want to make sure that they are in the proper coordinate system. Note that in the Edit Channel locations gui, there are multiple buttons to "transform the coordinates" that you should play with to get a more stable solution.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*you also want to plot in 3D from the Edit channel locations to see that the locations are good.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*overall you should not be having this problem, and should have a perfect file.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*you may want to try to change the filename from *.CED to sfp, and/or let eeglab decide.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*try to get things working correctly from GUI first before relying on command line only (though sometimes command line options will save the day).</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 2:17 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear T,<div><div class="gmail-m_-3607423902844083838h5"><div><br></div><div>I extracted a text file using Biosemi excel coordination (please find attached) and then used it with the following command:</div><div>>> pop_chanedit(readlocs('biosemi<wbr>_eloc.txt', 'format', { 'labels' 'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1))<br></div><div><br></div><div>At this point every thing looks fine (please find attached a 2D plot of the locations). </div><div><br></div><div>Then, I saved the location as *.ced file (please also find attached). </div><div><br></div><div>However, as I go to edit>channel location and upload the *.ced file that I just created, all the electrodes weirdly fall into a spot near right eye (please see the last attachment). Would you please help me with this.</div><div><br></div><div>I highly appreciate your help.</div><div><br></div><div>Many thanks,</div><div>Mahsa</div></div></div></div><div><div class="gmail-m_-3607423902844083838h5"><div class="gmail-m_-3607423902844083838m_2465608804800423497HOEnZb"><div class="gmail-m_-3607423902844083838m_2465608804800423497h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 23, 2017 at 3:40 PM, Tarik S Bel-Bahar <span dir="ltr"><<a href="mailto:tarikbelbahar@gmail.com" target="_blank">tarikbelbahar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)">Hello Mahsa, </div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">If you google "biosemi channel location files", the first link </div><div style="color:rgb(51,51,153)">should be Head Caps from Biosemi, and there there is a downloadable positions file for all their caps.</div><div style="color:rgb(51,51,153)">From there, you should be able to make a text loc file for their 32 channel montage.</div><div style="color:rgb(51,51,153)">Just make a text file that is formatted like other location files that are already in the eeglab channel locations folder (sample_locs folder), and you should be good to go.</div><div style="color:rgb(51,51,153)">It should have a label, and x y z coordinates, and then eeglab should be able to read it with no problem via the Edit> Channel locations import function in the eeglab gui.</div><div style="color:rgb(51,51,153)">If you have trouble with that, send a copy of the file you made, and one of the eeglab channel locs files, and detail any issues you had.</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_-3607423902844083838m_2465608804800423497m_-5588094464117469558h5">On Wed, Sep 20, 2017 at 11:46 AM, mahsa shalchy <span dir="ltr"><<a href="mailto:mahsa.shalchy@gmail.com" target="_blank">mahsa.shalchy@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-3607423902844083838m_2465608804800423497m_-5588094464117469558h5"><div dir="ltr">Dear list,<div><br></div><div>Could anyone kindly share ".loc" file of 32 channel layout with me? I failed to extract the file using Biosemi xls coordinates and unfortunately links that I found on the forum archive are broken.</div><div><br></div><div>Many thanks,</div><div>Mahsa</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></div></div></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>