Hello Inga,<br><br>Once you've loaded a dataset into EEGLAB, the event information is within the structure EEG.event; the length of EEG.event is the number of events in your data. So you can use MATLAB to iterate through EEG.event and make the appropriate changes. For example, if you have a list of events in order such asĀ  <br>
<br><div style="margin-left:40px"><span style="color:rgb(0,102,0);font-family:courier new,monospace">events = [20 20 40]</span><br></div><br>then you could go through EEG.event one event at a time, each time running<br><br>
<div style="margin-left:40px"><span style="color:rgb(0,102,0);font-family:courier new,monospace">EEG.event(i).type = events(i)</span><br></div><br>or something like that. There are also other ways you could do this (for example, comparing the times from your list of times and EEG.event.latency) depending on what information you have available; this is just one example.<br>
<br>Best,<br>Steve Politzer-Ahles<br><br><div class="gmail_quote">On Thu, Aug 23, 2012 at 3:02 AM, Inga GB <span dir="ltr"><<a href="mailto:i.griskova@gmail.com" target="_blank">i.griskova@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
I need an advice on EEG event codes to be changed in eeglab.<br>
Lets say, I have and EEG file as. edf, I have 120 events there, but<br>
they are all marked as 1000. however, I know there are two types of<br>
events-lets say coded as 20 and 40, and I know their timing-i.e. at<br>
which time each event happend, or order (first event was 20, second<br>
was 20, third was 40...). I need to implement this information into<br>
the data through eeglab-i know the manual option through edit event<br>
values. Is there any other faster way?<br>
<br>
Thanks for you time!<br>
<br>
Kind regards,<br>
<br>
Inga<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>