Hello EEGLAB users and experts,<br><br>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.<br><br>The documentation indicates that the use of this optional flag should proceed: <br clear="all">
'eventindices'- [int indices] Extract data epochs time locked to the indexed event numbers. <br><br>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"<br>
<br>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: <br>epochlimits = [-1, 11.2]; <br>epochsArray = (2:6:236);<br>...<br>EEG = pop_epoch(EEG, 'eventindices', epochsArray, epochlimits);<br>
<br>Can anyone advise on how to use this flag?<br><br>2) Alternatively, I would like to know how to extract epochs using information from the "urevent" field, if anyone has had success attempting that.<br><br>Thank you very much!<br>
<br>James Jones-Rounds<br><br>-- <br>Lab Manager<br>Human Development EEG & Psychophysiology (HEP) Laboratory,<br>Department of Human Development,<br>--------------------------------------------<br>Technician and Lab Safety Officer<br>
Computational Physiology Laboratory,<br>Department of Neurobiology & Behavior,<br>--------------------------------------------<br>Cornell University | Ithaca, NY<br><br>