[FieldTrip] questions about separating one dataset into two

Tzvetan Popov tzvetan.popov at uni-konstanz.de
Wed Jul 1 05:46:53 CEST 2015

Dear WanYu Hsu,

probably what you need is:
cfg =[];
cfg.trials = [1:50];
data1=ft_redefienetrial(cfg, data_Theta);
cfg.trials = [51:100];

alternatively have a look at the help of ft_selectdata.

Good luck,

> Hi community,
> I have a question here about EEG data analysis.
> I concatenated two datasets together (data1=55 trials, data2=51 trials),
> and then ran ICA to remove components we don't want for this concatenated dataset.
> "data_concat_forIC = ft_appenddata(cfg, data_forIC{1},data_forIC{2}"
> comp= ft_componentanalysis(cfg, data_concat_forIC);
> data_Theta = ft_rejectcomponent(cfg, comp);
> After doing these steps, is there anyway to reverse the concatenated data1 and data2 back to two datasets?
> In other words, if I have a datasets with 100 segmented trials ,
> how can I separate this dataset into two data files (1~50 trials and 51~100 trials) without changing data structure?
> Any help would be appreciated. 
> WanYu Hsu
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150701/dafa0be8/attachment-0002.html>

More information about the fieldtrip mailing list