[Eeglablist] Fwd: Combining several set files
Makoto Miyakoshi
mmiyakoshi at ucsd.edu
Wed May 10 09:07:17 PDT 2017
Dear Harold,
Sorry for belated response.
A few things you want to try.
1. Use pop_mergeset() to generate the 'ground-truth' result.
2. Compare your results with it for troubleshooting.
I wonder if you checked orders of trials and events. It seems the
difference between the two screenshots are just order of the trials.
Makoto
On Sat, Feb 18, 2017 at 3:25 PM, Harold Hodgins <hodg4890 at mylaurier.ca>
wrote:
>
> 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
>
>
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.
> ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>
--
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170510/209ae477/attachment.html>
More information about the eeglablist
mailing list