Hi Carlos,<br><br>Do you mean to trim long epochs into shorter epochs? (For example, if you have epochs that are 2000 ms long and you want them to be 1500 ms long?) If that is what you're wanting to do, you can do it from the command line using:<br>
<br>EEG = pop_epoch( EEG, {  }, [epochbegin epochend], 'newname', EEG.setname, 'epochinfo', 'yes');<br><br>where [epochbegin] and [epochend] are the latencies of the beginning and end of the epoch, respectively, with respect to the time-locking event. (I think pop_selectevent() also works, in more or less the same way; it also gives you the option of doing this only to certain conditions.)<br>
<br>Best,<br>Steve Politzer-Ahles<br><br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 12:51 AM, Carlos Mugruza <span dir="ltr"><<a href="mailto:cmugruza@yahoo.com">cmugruza@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div> Dear EEGLAB users,<br><br>I would like to know if there is any function to crop EEG files or maybe with eegplot or pop_eegplot.  I mean given a segment with latencies to reject. <br>
<br>With EEG.srate, I understand it can be done few steps: to crop EEG.data and to identify EEG.urevents and EEG.events updating every latency and to reject events in the structure. <br><br>Best wishes<br><br>Carlos.</div>
<div>_________________________________________<br>Carlos A. Mugruza  Vassallo<br>Neuroscience and Development</div><div>Scrymgeour Building<br>The University of Dundee <br>Dundee, UK<br>DD1 4HN<br>Office <span><a href="tel:%28%2B44%29%201382%20384926" value="+441382384926" target="_blank">(+44) 1382 384926</a></span><span dir="ltr"> <span dir="ltr" title="Call this phone number in United Kingdom with Skype: +441382384926"><span></span><span>  </span></span> </span><br>
Fax <a href="tel:%28%2B44%29%201382%20229993" value="+441382229993" target="_blank">(+44) 1382 229993</a></div><div><br></div><div>Webpage:</div><div><u><font color="#0066cc"><a rel="nofollow" href="http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/" target="_blank">http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/</a></font></u></div>
<div><a rel="nofollow" href="http://www.linkedin.com/in/carlosmugruza" target="_blank">http://www.linkedin.com/in/carlosmugruza</a> <a rel="nofollow" href="mailto:cmugruza@yahoo.com" target="_blank"></a></div></div></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" 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">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">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>
University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>