[FieldTrip] Using ft_crossfrequencyanalysis

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed Jun 16 20:24:22 CEST 2021

Hi Umesh,

What was the error? 'cfg.chanlow and cfg.chanhigh were forbidden variables’?

Please paste the complete error as you get it on the screen, as well as the stack (i.e. the line at which the error is thrown).
Also, what is the version of FieldTrip you have been using?

We need a little bit more information to be able to think along.

Good luck,

On 16 Jun 2021, at 17:38, Vivekananda, Umesh via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Dear team

I have used this function in the past successfully when considering within channel analysis. However when I used the function again but across channels like so
cfg.method      = 'plv';
cfg.keeptrials  = keepTrials;
cfg.chanlow     = cueHPCPower.label;
cfg.chanhigh    = cuePFCPower.label;
cfg.freqlow     = phaseBand;
cfg.freqhigh    = ampBand;
CFC             = ft_crossfrequencyanalysis(cfg,cueHPCPower,cuePFCPower);

​I got an error stating cfg.chanlow and cfg.chanhigh were forbidden variables. I had derived a fourier spectrum for HPC and PFC channel separately in order to compute individual channel CFC before averaging. Any help would be much appreciated



fieldtrip mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210616/f5918584/attachment.htm>

More information about the fieldtrip mailing list