<div dir="ltr">Dear David,<div><br></div><div>Here is a sample code for you.</div><div><br></div><div>%%%%%%%%%%%%%%%%%%%%%%%</div>%% importing event markers<br>EEG.event.type = 'boundary';<br>EEG.event.latency = 1;<br>
EEG.event.urevent = 1;<br>EEG.urevent.type = 'boundary';<br>EEG.urevent.latency = 1;<br><br>for n=1:size(eventTimeStamp,2)<br> EEG = pop_editeventvals(EEG,...<br> 'insert', {1 [] [] []},...<br>
'changefield',{1 'type' allEventLabels{n}},...<br> 'changefield',{1 'latency' eventTimeStamp(n)});<br>end<br>eeglab redraw<div>%%%%%%%%%%%%%%%%%%%%%%%%</div><div><br></div>
<div>Makoto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-01-28 David Kaufman <span dir="ltr"><<a href="mailto:david.kaufman@gmx.de" target="_blank">david.kaufman@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear list,<div><br></div><div>I'm trying to add ~300 events to EEG.event. I'm doing this using the pop_editintervals function. Every time this function is called the eeg_checkset and eeglab_options file is executed which is considerably slow. My function call looks like this:<br>
<br></div><div>pop_editeventvals(EEG,'append',{0 (latencyduration -1 [] [] 200 [] []});<br></div><div><br></div><div>Is there a way to add events without invoking the additional overhead of eeg_checkset?</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>David</div></font></span></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"><div><br></div>
-- <br><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</div>