[Eeglablist] Supressing the GUI (pop_epoch)
Metin Özyağcılar
metinozyagcilar at gmail.com
Wed Jul 17 04:06:02 PDT 2024
Dear EEGLAB users,
I’m struggling to prevent the GUI popping up, while using the pop_epoch
function in my script. As a result, the flow of the script is always
interrupted... Does anyone know how to prevent it? Interestingly, the GUI
that pops up is not the GUI for pop_epoch but for the GUI for pop_newset
(which wants an input for a new dataname and asks me whether or not I want
to save the data etc). But I’m sure it is the pop_epoch that causes this,
because when I delete the line with pop_epoch from the script, the GUI
never pops up.
Here is the code that I use:
events_phase = {'S 201' 'S 241' }
epoch_start = -0.4;
epoch_end = 2.6;
EEG = pop_epoch(EEG, events_phase, [epoch_start epoch_end], 'newname',
[sub{i}, '_epoched'], 'epochinfo', 'yes'); % create epochs
I’ve tried:
- Writing ‘gui’, ‘off’ at the end of the function,
- Deleted the ‘newname’ input’
- Using the function ‘epoch’
None worked.
If I use the function “epoch”, I get this error:
Operator '*' is not supported for operands of type 'cell'.
Error in epoch (line 126)
pos0 = floor(events(index)*g.srate); % offset of time locking event
Any help would be appreciated, thanks!
Metin
More information about the eeglablist
mailing list