<div dir="ltr">Dear David,<div><br></div><div>This answer is based on my guess.</div><div><br></div><div>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.</div>

<div><br></div><div>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.</div><div><br></div><div>Makoto </div></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/24 David Kaufman <span dir="ltr"><<a href="mailto:david.kaufman@gmx.de" target="_blank">david.kaufman@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hello everyone,<div><br></div><div>I'm trying to use EEGLAB from within a function inside a script, e.g.</div><div><br></div><div>function test</div><div>    [ALLEEG EEG CURRENTSET ALLCOM] = eeglab;</div>



<div>    EEG = pop_loadbv(baseFolder, eegFile);     </div><div>    [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET)<br></div><div>    eeglab redraw       </div><div>end</div><div><br></div><div>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.</div>



<div><br></div><div>Is it possible to call EEGLAB from a function and also see the data set or am I using EEGLAB wrong?</div><div><br></div><div>Regards,</div><div>David Kaufman</div></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" 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 dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</div>