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

James Jones-Rounds jj324 at cornell.edu
Thu Apr 26 14:30:46 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120426/81600b8e/attachment.html>


More information about the eeglablist mailing list