<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div apple-content-edited="true">
<div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Dear WanYu Hsu,</div><div><br></div><div>probably what you need is:</div><div>cfg =[];</div><div>cfg.trials = [1:50];</div><div>data1=ft_redefienetrial(cfg, data_Theta);</div><div>cfg.trials = [51:100];</div><div>data2=ft_redefinetrial(cfg,data_Theta);</div><div><br></div><div>alternatively have a look at the help of ft_selectdata.</div><div><br></div><div>Good luck,</div><div>Tzvetan</div><div><br></div></div></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi community,<div><br></div><div>I have a question here about EEG data analysis.</div><div><br></div><div>I concatenated two datasets together (data1=55 trials, data2=51 trials),<br></div><div>and then ran ICA to remove components we don't want for this concatenated dataset.</div><div> </div><div><span style="font-size:12.8000001907349px">"data_concat_forIC = ft_appenddata(cfg, data_forIC{1},data_forIC{2}"</span><br></div><div><div style="font-size:12.8000001907349px">comp= ft_componentanalysis(cfg, data_concat_forIC);<br></div><div style="font-size:12.8000001907349px">data_Theta = ft_rejectcomponent(cfg, comp);</div></div><div><br></div><div>After doing these steps, is there anyway to reverse the concatenated data1 and data2 back to two datasets?</div><div><br></div><div>In other words, if I have a datasets with 100 segmented trials ,</div><div>how can I separate this dataset into two data files (1~50 trials and 51~100 trials) without changing data structure?</div><div><br></div><div><span style="font-size:12.8000001907349px">Any help would be appreciated. </span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">WanYu Hsu</span></div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></body></html>