[Eeglablist] Epoching continuous EEG data into 1-sec segments

Cedric Cannard ccannard at protonmail.com
Tue Oct 11 09:24:45 PDT 2022


Dear Sahura,

I think if you simply use this line, the default will do what you need:
EEG = eeg_regepochs(EEG);

For the discrepancy, try this right after you run your code to see if help get consistent results: 
EEG = eeg_checkset(EEG);


Cedric Cannard



------- Original Message -------
On Tuesday, October 11th, 2022 at 2:21 AM, Sahura Ertuğrul <sahuraertugrul at gmail.com> wrote:


> Hi all,
> 
> I am trying to epoch a continuous EEG data into 1-sec segments. The sample
> rate is 500 and it is 2 mins long recording; thus, I have 60000 data
> points. I would like to obtain 120x1-sec segments. For this, I have used
> the eeg_regepochs function (see below the code part from my script) but I
> have a problem, that is, it sometimes gives 120 trials, and sometimes 119
> trials for the same data set. I do not understand why and I am confused
> about it. Is there anybody who have the same results before and knows what
> is going on?
> 
> My EEGLab version is eeglab2022.1
> 
> EEG=eeg_regepochs(EEG,'recurrence',1,'limits',[0 1],'rmbase', [NaN]);
> 
> Thank you very much for your help and time in advance,
> 
> Best regards,
> Sahura Ertugrul
> _______________________________________________
> 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