<div dir="ltr">Dear Achint,<div><br></div><div>Stephen's reply is very important, you want to check what is wrong with your data first.</div><div>I also had an experience of processing data with ~10k events. Loading this data took me such a long time in my environment... but I did not see any noticeable errors. I wonder if just having many number of events can cause an error, I have never heard of the problem.</div><div><br></div><div>That being said, if you want to delete selective events, see this wiki page first</div><div><a href="https://sccn.ucsd.edu/wiki/Makoto's_useful_EEGLAB_code#How_to_change_event_type_names" target="_blank">https://sccn.ucsd.edu/wiki/Makoto's_useful_EEGLAB_code#How_to_change_event_type_names</a><br></div><div>

<pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);background-color:rgb(249,249,249);line-height:1.3em;font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">% Rename event type name 'example1' into 'example2'
allEvents = {EEG.event.type}';
example1Idx = strcmp(allEvents, 'example1');
[EEG.event(example1Idx).type] = deal('example2');</pre>

<div>Modify this code in the following way</div><div><br></div><div>% Delete events with type name 'stimulusX'</div><div>allEvents = {EEG.event.type}';</div><div>example1Idx = strcmp(allEvents, 'stimulusX');</div><div>EEG.event(example1Idx = [];</div></div><div><br></div><div>This code is to delete all the events whose name is 'stimulusX'. You can use this solution to test your hypothesis: too many events should cause the error. Let us know what happens.</div><div><br></div><div>Makoto</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 24, 2018 at 7:38 AM Achint Sharma <<a href="mailto:achint.s@cbcs.ac.in" target="_blank">achint.s@cbcs.ac.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris<div>My EEG data has slightly higher number of events as compared to the events recorded in the behavioural data file. While importing events from the text file for renaming, it shows error pointing out the difference in the event numbers. How can I reduce length of EEG data? Or if there's any other solution to this problem.</div><div>Thanks</div><div>Achint</div></div>
_______________________________________________<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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-3557473631642975486gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>