<div dir="ltr"><div class="gmail_default" 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">On Sat, Feb 18, 2017 at 6:25 PM, Harold Hodgins <span dir="ltr"><<a href="mailto:hodg4890@mylaurier.ca" target="_blank">hodg4890@mylaurier.ca</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"><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 href="https://www.dropbox.com/s/4cqub9pl2k78cuh/combiningseveralsetfiles.zip?dl=0" target="_blank">https://www.dropbox.com/s/<wbr>4cqub9pl2k78cuh/<wbr>combiningseveralsetfiles.zip?<wbr>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.<wbr>set'},'filepath','C:\\Users\\<wbr>hodg4890\\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>______________________________<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></div>