[Eeglablist] use variable instead of numeric in pop_selectevent

Cedric Cannard ccannard at protonmail.com
Mon Jun 21 09:06:16 PDT 2021


Hi Kathleen,

I believe this is because latency can only have one number (e.g. a)  whereas you have two with [a, b].

Cédric

On Mon, Jun 21, 2021 at 08:06, Kathleen Van Benthem via eeglablist <eeglablist at sccn.ucsd.edu> wrote:

> Hello Lablist,
> Within a loop of many files, I need to change event names according to
> latency ranges using the script below (ranges change for each file being
> processed).
> I have defined a and b based on the dynamically changing values. This
> throws errors that I need to use numbers, not variables.
> Is there a way that I can do this? BTW, 'a<=b' also does not work.
>
> EEG = pop_selectevent( EEG,
> 'latency',[a,b],'type',{'9999'},'renametype','4111','deleteepochs',
> 'off','deleteevents','off');
>
> Kathleen, Carleton University
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu


More information about the eeglablist mailing list