[Eeglablist] Using EEGLAB from within a function

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Fri Jan 24 14:15:14 PST 2014


Dear David,

This answer is based on my guess.

When you use EEGLAB from command line you don't need to have main GUI on
screen. You can check your workspace for the current status. For example,
your EEG data is stored in EEG.data. After loading a dataset type 'EEG' in
the command line and you can see what you have in your current workspace.

This also means that unless you update it, GUI could show old status of
your data and misleads you. To update it use 'eeglab redraw' as your code
does.

Makoto


2014/1/24 David Kaufman <david.kaufman at gmx.de>

> Hello everyone,
>
> I'm trying to use EEGLAB from within a function inside a script, e.g.
>
> function test
>     [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
>     EEG = pop_loadbv(baseFolder, eegFile);
>     [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET)
>     eeglab redraw
> end
>
> Unfortunatly, as soon as the function returns my data set is not present
> in the GUI. If I put the contents of the above function in the root script
> the data set appears in the GUI.
>
> Is it possible to call EEGLAB from a function and also see the data set or
> am I using EEGLAB wrong?
>
> Regards,
> David Kaufman
>
> _______________________________________________
> 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/20140124/92486d4a/attachment.html>


More information about the eeglablist mailing list