<div dir="ltr">Dear Frans,<div><br></div><div><div><div>> Unfortunately I don't have much experience using eeglab itself</div><div><br></div><div>Or fortunately?<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><div>Do the channel import process using GUI, then type 'eegh' to obtain the code with parameters. However, I don't know if it works in your case. If I were you I would format the .mat file into the 'typical' EEG channel location format (these files should be available online) and let EEGLAB load it using its functions.</div><div><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></div><div class="gmail_extra"><br></div><div class="gmail_extra">I'm not sure if those changes directly under EEG survives the EEGLAB consistency check (eeg_checkset()). They may not. I know Tim and Nima stored output from their plugins under EEG.etc. Probably it's safer to do it. About the pop_newset(), for non-GUI users sometimes it's annoying, but probably for the data consistency check it is necessary.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 5:29 AM, 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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>