[FieldTrip] 'non equidistant frequency bins are not supported for method granger'

Jae Moon jmoon at hollandbloorview.ca
Tue Sep 3 14:43:14 CEST 2019


Hi everyone,

I am getting the following error:

the call to "ft_freqanalysis" took 2 seconds and required the additional allocation of an estimated 1 MB
the call to "ft_selectdata" took 0 seconds and required the additional allocation of an estimated 0 MB
Error using ft_connectivityanalysis (line 317)
non equidistant frequency bins are not supported for method granger

I do not understand why this is happening when I am applying an equidistant foi (1:60)

My input is:

freq = [];
freq.freqcfg = [];
freq.freqcfg.method = 'mtmconvol';
freq.freqcfg.taper = 'hanning';
freq.freqcfg.output = 'pow';
% freq.freqcfg.keeptrials= 'yes';
freq.freqcfg.foi = [1:60];
freq.freqcfg.pad='nextpow2';
freq.freqcfg.toi = [-0.2:0.01:0.9];
freq.freqcfg.t_ftimwin = ones(size(freq.freqcfg.foi))*0.1;

freq13 = ft_freqanalysis(freq.freqcfg, data13);

grangercfg=[];
grangercfg.method = 'granger';
grangercfg.channel={'CSblue','SPblue'};
grangercfg.feedback='text';

gdata.g13_mrc = ft_connectivityanalysis(grangercfg, freq13);

Your help is very much appreciated.

Best,

Jae
Confidentiality Notice:  
E-mail may be intercepted between the sender and the receiver and is 
therefore neither secure nor confidential. Your continued use of e-mail 
communication confirms that you accept this risk. If this is an urgent 
matter, please contact me at the phone number provided. This e-mail, 
including any attachments, is for the sole use of the intended recipient(s)
and may contain private, confidential, and privileged information. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you 
are not the intended recipient or this information has been 
inappropriately forwarded to you, please contact the sender by reply 
e-mail and destroy all copies of the original.




More information about the fieldtrip mailing list