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