Dear Fieldtrip experts,<br><br>I'm working with restin-state EEG data, I'm looking for performing EEG coherence analysis between my normal EEG channels and a channel from the same subject but aquired with a different name<br><br>I did: data = ft_appenddata([], dataEEG_allchans, dataEEG_1chan)<br>and it did concatenate the one single channel at the end of the dataEEG_allchans, so now I have a matrix with Nchans+1, that looks perfect to me, then I did perform fourier transformations with a hanning window, and workded perfectly, but if I set <br>cfg.method='coh'<br>cfg.complex='imag'<br>cfg.channelcbm={'all', 'ref-P7'}<br>icohe=ft_connectovityanalysis(cfg,)<br><br>I always get the following error:<br>???? attempted to access siz(4); index out of bounds because numel(siz=3)<br>Error in ==> ft_checkdata>fixcsd at 798<br><br>I have also tried something like:<br>cfg.channelcbm={{1x40cell}, 'ref-P7'}<br>where {1x40 cell} is a cell matrix containing the names of all my sensors<br><br>but it didn't worked.<br><br>Any help will be appreciated<br><br>Many thanks in advanced,<br>Gabriel