<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hello<div>thanks in advance for your assistance.</div><div>I'd like to merge 2 datasets after preprocessing using ft_appendata.</div>

<div>Even though it works on first view, "trl" does not add up but keeps the structure of the last dataset (304 in the example):</div><div><br></div><div><div>XY_merge=ft_appenddata(cfg, x1, x2);</div><div>input dataset 1, 29 channels, 301 trials</div>

<div>input dataset 2, 29 channels, 304 trials</div><div>Warning: input data comes from different datafiles </div><div>> In ft_appenddata at 182</div><div>concatenating the trials over all datasets</div><div>removing sampleinfo field from output</div>

<div>output dataset, 29 channels, 605 trials</div></div><div><br></div><div>Do I miss the point ?</div><div><br></div><div>Thanks</div><div>Best regards</div><div>Leopold</div></span>