<div dir="ltr"><div class="gmail_default" style="color:#333399">Hi Elizabeth, some notes below that might help. this shouldn't be a problem, and if it's repeatable please consider reporting in eeglab bugzilla.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">The error of course suggests that one of your files does not have urevents, which I think are/should-be generated when a file is first loaded and saved in eeglab.</div><div class="gmail_default" style="color:#333399">I recommend making sure that you've done the following, which should lead you past this error.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">importing, epoching, and saving the two files the same way as much as possible, so there is nothing different between them except the number and type of epoch.</div><div class="gmail_default" style="color:#333399">both files should have a "number of epochs" in the eeglab gui</div><div class="gmail_default" style="color:#333399">both files "should" have an urevents field (unless there were no events in the file used originally?-not sure about this, see online wiki on events and urevents)</div><div class="gmail_default" style="color:#333399">both files should have an 3-dimensional EEG.data structure</div><div class="gmail_default" style="color:#333399">both files should have the same-length epochs</div><div class="gmail_default" style="color:#333399">both files should already be healthily saved and re-openable in eeglab as .set files, prior to attempt at merging</div><div class="gmail_default" style="color:#333399">both files are actively in memory as Datasets 1 and 2 (or however many datasets you're merfing.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Other than this, first two a successful mergeset and review the command that was run using eegh. Try it on two files that are copy of each of other.</div><div class="gmail_default" style="color:#333399">You may also attempt to comment out line 275 or near there in the code to attempt to bypass the error, but this is NOT recommended unless you're matlab saavy and can read the full function code.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 2:44 PM, Elizabeth Spencer Norton <span dir="ltr"><<a href="mailto:enorton@northwestern.edu" target="_blank">enorton@northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Cambria,Serif">
<p><span style="font-size:12pt">Hello,</span><br>
</p>
<p>I'm trying to merge (concatenate) two datasets with different numbers of events. We run an oddball paradigm with randomly selected number of standards between deviants, and this is done in two runs that have different stimuli. I'm trying to concatenate the
 two runs using the GUI which calls pop_mergeset, but getting the error popup "EEGLAB error in function pop_mergeset() at line 275: Reference to non-existent field 'urevent'."<br>
</p>
<p><br>
</p>
<p>Looking at the pop_mergeset script, it looks like it wants to merge the files and insert a boundary event halfway through (lines 224-228), which may be the problem with using two files of unequal length. (Using EEGLab version 13.6.5.)<br>
</p>
<p><br>
</p>
<p>I'd prefer not to just lop off events from the longer dataset to make the sizes match. If anyone has ideas for other solutions, I would appreciate it!<br>
</p>
<p>Best,<br>
</p>
<p>Elizabeth Norton<br>
</p>
<p>Northwestern University<br>
</p>
</div>

<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>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.<wbr>edu</a><br></blockquote></div><br></div>