[Eeglablist] Loading channel locations without GUI and pop_functions

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Jul 24 11:36:29 PDT 2015


Dear Frans,

> Unfortunately I don't have much experience using eeglab itself

Or fortunately?

> 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.

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.

> 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?

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.

Makoto

On Fri, Jul 24, 2015 at 5:29 AM, Frans Zdyb <frzdyb at gmail.com> wrote:

> Hi everyone,
>
> 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:
>
> 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.
>
> 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?
>
> I apologize if these questions have been answered before, but I couldn't
> find it in the archives.
>
> Thanks in advance,
> Frans
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150724/6f05c25f/attachment.html>


More information about the eeglablist mailing list