[Eeglablist] Using EEGLAB from within a function

David Kaufman david.kaufman at gmx.de
Mon Jan 27 00:18:14 PST 2014


Thanks Bethel! Your solution worked flawlessly.

David


2014-01-27 David Kaufman <david.kaufman at gmx.de>

> Thanks Bethel! Your solution worked flawlessly.
>
> David
>
>
> 2014-01-26 Bethel Osuagwu <b.osuagwu.1 at research.gla.ac.uk>
>
> Hi David
>> There are many ways you can do this. One is to  start EEGLAB normally
>> before running your function: [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;
>>
>> Then define ALLEEG, EEG, CURRENTSET  as globals inside your function.
>>
>> Bethel
>> ________________________________________
>> From: eeglablist-bounces at sccn.ucsd.edu [eeglablist-bounces at sccn.ucsd.edu]
>> On Behalf Of David Kaufman [david.kaufman at gmx.de]
>> Sent: 24 January 2014 08:41
>> To: eeglablist at sccn.ucsd.edu
>> Subject: [Eeglablist] Using EEGLAB from within a function
>>
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140127/373e1cae/attachment-0001.html 


More information about the eeglablist mailing list