<div dir="ltr"><div><div><div>Hello Frans,<br><br></div>Regarding question (1), you can run any function from the GUI and then issue 'eegh' at the command line to get the code version of that command. Then in the future you can use that code to run the operation (such as loading channel locations) without using the GUI. In the past I've used pop_chanedit to read channel locations from a template, but I suppose if you have a separate file with the locations already then you could use e.g. readlocs() and then do 'eeglab redraw' afterwards to update the GUI if necessary.<br><br></div>Best,<br></div>Steve<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div></div>
<br><div class="gmail_quote">On Fri, Jul 24, 2015 at 4:29 PM, Frans Zdyb <span dir="ltr"><<a href="mailto:frzdyb@gmail.com" target="_blank">frzdyb@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"><div><div><div><div><div>Hi everyone,<br><br></div>I'm currently writing an extension to eeglab. Unfortunately I don't have much experience using eeglab itself; therefore I have a few beginner questions:<br><br></div>1) Is there a way to load channel locations from a .mat file without going through Edit->Channel Locations? The way I do it now is to load the chanlocs struct into matlab and run " EEG.chanlocs = chanlocs " and open Edit->Channel Locations and press ok; surely there must be a way to do it without GUI. I've tried using pop_chanedit, without success.<br><br></div>2) I've written several pop_[functions] as part of the extension, which alter fields in the EEG struct and add a few new ones. After running them, pop_newset() asks me to save the results as a new dataset. Is this normal eeglab behavior? Why not just overwrite the old one?<br><br></div><div>I apologize if these questions have been answered before, but I couldn't find it in the archives.<br><br></div>Thanks in advance,<br></div>Frans<br></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.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.edu</a><br></blockquote></div><br></div>