[Eeglablist] How to use 'eventindices' flag in pop_epoch

Stephen Politzer-Ahles politzerahless at gmail.com
Sat Apr 28 12:31:36 PDT 2012


Hi James,

Have you tried instead using pop_select()? i.e.,

EEG = pop_select( EEG, 'trial', epochsArray);

This is what I have used in the past to do something similar to what you
are trying to do.

Best,
Steve

On Thu, Apr 26, 2012 at 4:30 PM, James Jones-Rounds <jj324 at cornell.edu>wrote:

> Hello EEGLAB users and experts,
>
> I am having trouble using the 'eventindices' flag for the function
> pop_epoch, in a script I'm writing to set up some analyses for EMG data
> analysis.
>
> The documentation indicates that the use of this optional flag should
> proceed:
> 'eventindices'- [int indices] Extract data epochs time locked to the
> indexed event numbers.
>
> 1) What does the "int" component mean? I assumed I should just provide a
> vector of integers corresponding to the event indices I want extracted, but
> I get this error when I try that: "pop_epoch(): wrong syntax in function
> arguments"
>
> I included a list of indexed event numbers (in this case every 6th event
> starting with the 2nd event), which I generated with this line:
> epochlimits = [-1, 11.2];
> epochsArray = (2:6:236);
> ...
> EEG = pop_epoch(EEG, 'eventindices', epochsArray, epochlimits);
>
> Can anyone advise on how to use this flag?
>
> 2) Alternatively, I would like to know how to extract epochs using
> information from the "urevent" field, if anyone has had success attempting
> that.
>
> Thank you very much!
>
> James Jones-Rounds
>
> --
> Lab Manager
> Human Development EEG & Psychophysiology (HEP) Laboratory,
> Department of Human Development,
> --------------------------------------------
> Technician and Lab Safety Officer
> Computational Physiology Laboratory,
> Department of Neurobiology & Behavior,
> --------------------------------------------
> Cornell University | Ithaca, NY
>
>
> _______________________________________________
> 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/20120428/bb217f7b/attachment.html>


More information about the eeglablist mailing list