[Eeglablist] Crop EEG segments in command line

Carlos Mugruza cmugruza at yahoo.com
Mon Apr 9 12:52:08 PDT 2012


Dear Stephen and Makoto,

Thanks by your answers, but I want to do this in continuous data.  I 
want to divide or extract the file but without breaking conditions 
(defined by 2 markers).  Because of that I was asking if someone used 
pop_eegplot.  But, now I was looking again and it looks that pop_select 
is the function I was looking for. So, it is time to make the short 
script.

Best wishes.

Carlos.
 
_________________________________________
Carlos A. Mugruza  Vassallo
Neuroscience and Development
Scrymgeour Building
The University of Dundee 
Dundee, UK
DD1 4HN
Office (+44) 1382 384926    
Fax (+44) 1382 229993

Webpage:
http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/
http://www.linkedin.com/in/carlosmugruza 


________________________________
 From: Stephen Politzer-Ahles <politzerahless at gmail.com>
To: Carlos Mugruza <cmugruza at yahoo.com> 
Cc: "eeglablist at sccn.ucsd.edu" <eeglablist at sccn.ucsd.edu> 
Sent: Monday, April 9, 2012 11:26 AM
Subject: Re: [Eeglablist] Crop EEG segments in command line
 

Hi Carlos,

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:

EEG = pop_epoch( EEG, {  }, [epochbegin epochend], 'newname', EEG.setname, 'epochinfo', 'yes');

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.)

Best,
Steve Politzer-Ahles



On Mon, Apr 9, 2012 at 12:51 AM, Carlos Mugruza <cmugruza at yahoo.com> wrote:

 Dear EEGLAB users,
>
>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. 
>
>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. 
>
>Best wishes
>
>Carlos.
>_________________________________________
>Carlos A. Mugruza  Vassallo
>Neuroscience and Development
>Scrymgeour Building
>The University of Dundee 
>Dundee, UK
>DD1 4HN
>Office (+44) 1382 384926    
>Fax (+44) 1382 229993
>
>
>Webpage:
>http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/
>http://www.linkedin.com/in/carlosmugruza 
>_______________________________________________
>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
>


-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://www.linguistics.ku.edu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120409/55d01bb2/attachment.html>


More information about the eeglablist mailing list