<div dir="ltr">Hi,<div><br></div><div>Thanks in advance for the help.</div><div><br></div><div>I am trying to use ft_appenddata to merge EEG and iEEG (LFP) data as input to run connectivity analysis with ft_connectivity (after processing this merged data with ft_freqanalysis).</div><div><br></div><div>EEG data has the following channels: 'F3', 'C3', 'A2', 'O1', 'F4', 'A1', 'C4', 'O2'</div><div>LFP data has the following channels: 'LFP1-LFP2', 'LFP2-LFP3'</div><div><br></div><div><div>For my same-subject data, I have the following (output from ft_preprocessing):</div><div><br></div>LFP_proc_ftdata =<br><br>  struct with fields:<br><br>     trialinfo: [1332×1 double]<br>       fsample: 100<br>    sampleinfo: [1332×2 double]<br>         trial: {1×1332 cell}<br>          time: {1×1332 cell}<br>         label: {2×1 cell}<br><div>           cfg: [1×1 struct]</div><div><br></div><div> EEG_proc_ftdata =</div><br>  struct with fields:<br><br>     trialinfo: [1332×1 double]<br>       fsample: 100<br>    sampleinfo: [1332×2 double]<br>         trial: {1×1332 cell}<br>          time: {1×1332 cell}<br>         label: {8×1 cell}<br>           cfg: [1×1 struct]<br></div><div><br></div><div><br></div><div>I get the following error when I run <br></div><div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt"><br></span></div><div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">cfg = [];</span></div><div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">data_merged =  ft_appenddata(cfg, proc_ftdata, LFP_proc_ftdata);</span></div><div><br></div><div>Warning: the data has overlapping segments or originates from different recordings on disk <br>Warning: please consider specifying cfg.keepsampleinfo='no'<br></div><div>Error using ft_appenddata<br>cannot append this data<br></div><div><br></div><div>Even when I specify cfg.keepsampleinfo='no', I still get "cannot append this data". Is the issue is that there are no common channels between the datasets to run ft_appenddata?</div><div><br></div><div><br></div></div>