<div dir="ltr">Dear Ramon,Stephen and Arnaud<div><br></div><div>Thanks for your prompt replies.</div><div>@Arnaud , My aim is to extract data segments from S100 to S102 and S101 to S103.<br></div><div>S100 is the trigger for onset of cued stimulus and S102 is the trigger when participant started typing the response.Same applies for S101 (onset of non-cued stimulus) S103 (paticipant started typing).</div><div>As there was no time limit for participant to response, hence the length of segments from S100 to S102 differs for each subject.</div><div>My aim is to extract the data segments from S100 to S102 as cued  and S101 to S103 as non cued segment and concatenate them together which would give me one long segment of cued and another of non cued.</div><div>I hope this information was clear. What do you suggest now?</div><div><br></div><div>Thanks</div><div>Regards</div><div>Yadwinder</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 15, 2018 at 9:52 PM Arnaud Delorme <<a href="mailto:arno@ucsd.edu">arno@ucsd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Stephen and Yadwinder,<br>
<br>
Yes, in EEGLAB you can create discontinuous data segments, but you cannot create epochs of varying length (although see next paragraph below). The reason is that, when performing ERP or ERSP analysis, you would be averaging over different number of trials, possibly adding noise at the lower and upper time limits where there might be few trials (so what you really want to look at is the region where all data epochs are included - and in this case, you might as well create epochs of the same length). The other reason is that we wanted people to easily manipulate the EEG raw data from the command line. Data epochs of the same length may be stored in a single Matlab matrix, but epochs of different length cannot (and in fact they are stored in a cell array of matrices in Fieldtrip). <br>
<br>
But, according to your original message, Yadwinder, I am not sure your epochs have different lengths. For instance, if the number of sample between 'S100' and 'S102' and between 'S101' and 'S103’ is constant, you may simply extract epochs of a given length time locked to ‘S100’ and ‘S101’. If the number of samples between these pairs of event is not constant, you can in EEGLAB have concatenated epochs of different lengths. There is no menu to extract such epochs, so you might have to write a script. Basically, you would want to remove portions of data between selected event types.<br>
<br>
Best wishes,<br>
<br>
Arno<br>
<br>
> On Jun 14, 2018, at 6:18 PM, Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>> wrote:<br>
> <br>
> I'm not sure it's possible in EEGLAB to make epochs with varying durations. It is possible in FieldTrip, though.<br>
> <br>
> <br>
> ---<br>
> Stephen Politzer-Ahles<br>
> The Hong Kong Polytechnic University<br>
> Department of Chinese and Bilingual Studies<br>
> <a href="http://www.mypolyuweb.hk/~sjpolit/" rel="noreferrer" target="_blank">http://www.mypolyuweb.hk/~sjpolit/</a><br>
> <br>
> On Thu, Jun 14, 2018 at 4:10 PM, yadwinder kaur <<a href="mailto:yadwinder.k2@gmail.com" target="_blank">yadwinder.k2@gmail.com</a>> wrote:<br>
> Dear EEGLAB users<br>
> <br>
> I have continuous EEG data with  triggers labeled as ''S100','S101,'S102','S103'. I want to segment the data into different epochs so that startepoch : 'S100' to endepoch 'S102' and another one as startepoch 'S101' to endepoch 'S103' and generate a total of 72 epochs. and at the end, I want to concatenate these trials: every epoch (S100 to S102) and (S101 to S103). I would appreciate any help here.<br>
> <br>
> Thanks<br>
> <br>
> Regards<br>
> Yadwinder<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
> <br>
> _______________________________________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
<br>
</blockquote></div>