Hi Becky,<br><br>May I ask what kind of system your data are originally from?<br><br>I've had similar issues when working with .eeg data previously epoched in Neuroscan. What worked for me was to use Edit -> Select epochs/events instead of using Tools -> Extract Epochs. Then instead of selecting events from the "Type" button (which only included one event type--'TLE'), I put the codes associated with each condition in the 'epochtype' field. It seems that, depending on the nature of your data, the codes you're looking for may be in EEG.event.type or in EEG.event.epochtype, and yours might be the latter if they were previously epoched in another system. This is just my guess, though; the problem could be something different.<br>
<br>Best,<br>Steve<br><br><div class="gmail_quote">On Thu, Sep 13, 2012 at 3:55 PM, Becky Prince <span dir="ltr"><<a href="mailto:becky.prince@york.ac.uk" target="_blank">becky.prince@york.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear EEGLAB users,<div><br></div><div>I'm trying to create epochs around a set of events in my data. The event markers are all numbers (1 and 50:89). When I go to Tools -> Extract Epochs, then click the '...' in the 'Time-locking event type(s)' row to select from the events in my data, only two event types (1 and 50) appear in the event types browser box. I know that I have more event types because I've checked EEG.event.type and Edit -> Event values.</div>
<div><br></div><div>For example, here is an event marked '55':</div><div><div> >> EEG.event(9)</div><div> ans = </div><div> type: '55 '</div><div> latency: 10726</div><div> duration: 0</div>
</div><div><br></div><div>To extract the epochs around the events 50:89, I've tried scripting this:</div><div><div> EEG = pop_epoch( EEG, { '50' '51' '52' '53' '54' '55' '56' '57' '58' '59'...</div>
<div> '60' '61' '62' '63' '64' '65' '66' '67' '68' '69'...</div><div> '70' '71' '72' '73' '74' '75' '76' '77' '78' '79'...</div>
<div> '80' '81' '82' '83' '84' '85' '86' '87' '88' '89' },...</div><div> [-0.2 0.5], 'newname', '4_1_vad_ep', 'epochinfo', 'yes');</div>
</div><div><br></div><div>But this produces an error (regardless of whether the event values are space-separated or comma-separated):</div><div><div> ??? Error using ==> pop_epoch at 229</div><div> pop_epoch(): empty epoch range (no epochs were found).</div>
</div><div><br></div><div>I also get the above error when trying to epoch a single event value. Does anyone know why the epoch extraction isn't working? Did I miss a step somewhere, like editing the event fields or values? I'd be very grateful for any advice!</div>
<div><br></div><div>Thanks,</div><div>Becky</div><div><br></div><div><br></div><div><br></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>