<div dir="ltr"><div><div><div>Thanks Tarik,<br><br></div>That solved the problem. No sure how I missed the pop_mergeset function. It does exactly what I need it to.<br><br></div><div>The only thing I had to change after was the set filename, filepath, and fdt filename. If you use the GUI don't have to.<br></div><div><br></div>Sincerely,<br></div>Harold Hodgins<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 23, 2017 at 1:57 PM, Tarik S Bel-Bahar <span dir="ltr"><<a target="_blank" href="mailto:tarikbelbahar@gmail.com">tarikbelbahar@gmail.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><div style="color:rgb(51,51,153)">Hi Harold,  The concatenating you're doing via script may not meet eeglab's needs, assumptions, or checks. first thing one could try is to load the .set files manually via gui, which allows you to append loaded sets. Then confirm that all their info in the EEG.data is matching up. Then, via the GUI, attempt the merging of the sets, and review the resultant file and file info. If you don't get the same issue in the resultant file via this path, then use eegh to grab the code and use a variant of that in your script, try to make sure you're not missing any updating commands that eeglab needs. Alternatively, if replicable, it might something to drop into the bugzilla list (wherein something like this might already be listed). </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Sat, Feb 18, 2017 at 6:25 PM, Harold Hodgins <span dir="ltr"><<a target="_blank" href="mailto:hodg4890@mylaurier.ca">hodg4890@mylaurier.ca</a>></span> wrote:<br></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><div class="gmail-h5"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>Good Evening,<br><br>I'm working on a MatLab script to combine several set files for one subject into a new set file for further analysis. <br></div><div>The original set files have already been filtering, corrected, and epoched. The only major difference between them is the number of epochs since some were rejected due to things like the subjected blinking. <br></div><div><br>When I tried plotting the new data set I noticed that the new data wasn't displayed the same as the old data. <br>Specifically the epoch data for the original set had markers at each event but the new data I added on didn't.<br><br></div>Also the data with markers that's displayed doesn't line up doesn't seem to be for the correct set.<br><div><br>The screenshots can be found at <a target="_blank" href="https://www.dropbox.com/s/4cqub9pl2k78cuh/combiningseveralsetfiles.zip?dl=0">https://www.dropbox.com/s/4<wbr>cqub9pl2k78cuh/combiningsevera<wbr>lsetfiles.zip?dl=0</a> and below is the the MatLab code I tried<br><br><br>clear;<br>[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;%EEGALB 14.0.0b<br>ALLEEG = pop_loadset('filename',{'411RC<wbr>C.set','424RCC.set','425RCC.se<wbr>t'},'filepath','C:\\Users\\hod<wbr>g4890\\data\\4\\');<br><br>new_set = ALLEEG(1);<br><br>new_set.datfile = 'newRCC.fdt';<br>new_set.saved = 'no';<br>new_set.setname = 'newRCC.set';<br>new_set.filename = 'newRCC.set';<br>new_set.data = cat(3,ALLEEG.data);<br>new_set.trials = size(new_set.data,3);<br>new_set.event = cat(2,ALLEEG.event);<br>new_set.epoch = cat(2,ALLEEG.epoch);<br><br>for i=1:new_set.trials<br>new_set.epoch(i).event = i;<br>new_set.event(i).epoch = i;<br>end<br><br>pop_eegplot(new_set);<br>pop_eegplot( ALLEEG(1) );<br><br><br></div><div>Sincerely,<br></div><div>Harold Hodgins<br></div><div><br></div></div>
</div><br></div>
<br></div></div>______________________________<wbr>_________________<br>
Eeglablist page: <a target="_blank" rel="noreferrer" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a target="_blank" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a target="_blank" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></div>