Back to the main page.

Bug 133 - ft_connectivityanalysis averaging trials bug

Reported 2010-08-24 02:33:00 +0200
Modified 2011-01-06 09:15:20 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P1 enhancement
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Andre Bastos - 2010-08-24 02:33:12 +0200

When calling ft_connectivityanalysis with fourier data of form rpt_tap_chan_freq, the function crashes on the call to selectdata on line 286. The problem is fixed when the user inputs a manually averaged cross-spectral density of the form chan_chan_freq. The full dbstack is: Error in ==> avgoverdim at 47 if numel(fntmp)==1 && strcmp(fntmp{1}, 'dimord'), Error in ==> selectdata at 485 if avgoverrpt, data = avgoverdim(data, 'rpt', fb); end Error in ==> ft_connectivityanalysis at 286 data = selectdata(data, 'avgoverrpt', 'yes'); Error in ==> compute_lag_allareas at 45 coh{1} = ft_connectivityanalysis(cfg,freqAtt{1});

Jan-Mathijs Schoffelen - 2010-08-24 10:17:56 +0200

...but what is the error?... By the way, is this a typo? 'rpt_tap_chan_freq' shouldn't it be: 'rpttap_chan_freq'