[Eeglablist] Error in pop_epoch?
Cedric Cannard
ccannard at protonmail.com
Thu Sep 18 10:50:50 PDT 2025
Hi Carl,
I believe this means your dataset events are not a string or cell of characters, as it is expected to be. Or maybe you don't have event markers in your dataset? The variable 'types' here refers to the events you select for your segmentation.
What do you see when you type this in your command window?
{EEG.event.type}
If they are double (numerical), convert them to characters with something like:
if isnumeric([EEG.event.type])
EEG.event = arrayfun(@(x) setfield(x,'type',num2str(x.type)), EEG.event);
end
Cedric Cannard
On Thursday, September 18th, 2025 at 8:43 AM, Carl Martin Mikael Randau via eeglablist <eeglablist at sccn.ucsd.edu> wrote:
> Hello all
> Using latest eeglab and MATLAB R2025A. Loading a simple dataset and selecting epochs from the GUI or from the command lines gives an error:
>
> > > OUTEEG = pop_epoch( EEG); % pop-up a data entry window
>
> Not enough input arguments.
>
> Error in pop_epochmatlab:matlab.lang.internal.introspective.errorDocCallback('pop_epoch', '/home/martin/git/eeglab_MR/functions/popfunc/pop_epoch.m', 127) (line 127matlab: opentoline('/home/martin/git/eeglab_MR/functions/popfunc/pop_epoch.m',127,0))
>
> if ischar(types)
> ^^^^^
>
> As if types is a function. Trying to edit it fails because we can't edit built-in functions.
>
> BW
>
> Carl
>
> Region Sjælland anvender de personoplysninger, du giver os i forbindelse med din henvendelse.
> Du kan læse mere om formålet med anvendelsen samt dine rettigheder på vores hjemmeside
>
> Region Sjælland<https://urldefense.com/v3/__https://www.regionsjaelland.dk/servicemenu/om-os/persondatapolitik/persondatapolitik-og-regionens-dpo__;!!Mih3wA!AzwjAyNgqM7EgYvk5Ke51n8plVXhJdBzj6Ur7mokds_-AjQGYQvNMdkIOhjPLQkk1dhzQzW7p6deNOFsf5_59RKmNBwB$ >
>
> _______________________________________________
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://sccn.ucsd.edu/mailman/listinfo/eeglablist .
More information about the eeglablist
mailing list