[Eeglablist] Fwd: Combining several set files

Harold Hodgins hodg4890 at mylaurier.ca
Sat Feb 18 15:25:54 PST 2017


Good Evening,

I'm working on a MatLab script to combine several set files for one subject
into a new set file for further analysis.
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.

When I tried plotting the new data set I noticed that the new data wasn't
displayed the same as the old data.
Specifically the epoch data for the original set had markers at each event
but the new data I added on didn't.

Also the data with markers that's displayed doesn't line up doesn't seem to
be for the correct set.

The screenshots can be found at
https://www.dropbox.com/s/4cqub9pl2k78cuh/combiningseveralsetfiles.zip?dl=0
and below is the the MatLab code I tried


clear;
[ALLEEG, EEG, CURRENTSET, ALLCOM] = eeglab;%EEGALB 14.0.0b
ALLEEG = pop_loadset('filename',{'411RCC.set','424RCC.set','
425RCC.set'},'filepath','C:\\Users\\hodg4890\\data\\4\\');

new_set = ALLEEG(1);

new_set.datfile = 'newRCC.fdt';
new_set.saved = 'no';
new_set.setname = 'newRCC.set';
new_set.filename = 'newRCC.set';
new_set.data = cat(3,ALLEEG.data);
new_set.trials = size(new_set.data,3);
new_set.event = cat(2,ALLEEG.event);
new_set.epoch = cat(2,ALLEEG.epoch);

for i=1:new_set.trials
new_set.epoch(i).event = i;
new_set.event(i).epoch = i;
end

pop_eegplot(new_set);
pop_eegplot( ALLEEG(1) );


Sincerely,
Harold Hodgins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170218/85774a54/attachment.html>


More information about the eeglablist mailing list