problems using multiplotTFR for eeg-files.

Carina Graversen cgra05 at HST.AUC.DK
Thu Mar 23 11:24:49 CET 2006


Hi.

I'm trying to use the wavelet code for an .eeg-file, but unfortunately I run
into problems when I try to plot the results. The error I get is a lot of
the following messages:

Warning: Divide by zero.
> In fieldtrip-20060306\private\nan_mean at 57
  In freqbaseline>TFabschange at 201
  In freqbaseline at 109
  In multiplotTFR at 142
reading layout from file CTF151.lay
Warning: Divide by zero.
> In mean at 31
  In multiplotTFR at 251



I use the following commands:

% *************************************************************************
% EVENTRELATEDAVERAGING
% *************************************************************************
cfg1 = [];
cfg1.datafile                    = 'Ken_test.eeg';
cfg1.headerfile                  = 'Ken_test.eeg';
cfg1.channel                     = 'all';

dataFIC = preprocessing(cfg1);                                 % Preprocess!

cfg2 = [];

avgFIC = timelockanalysis(cfg2, dataFIC);


% *************************************************************************
% WAVELET
% *************************************************************************
cfg7 = [];
cfg7.output     = 'pow';
cfg7.method     = 'wltconvol'
cfg7.foi        = 1:2:30;
cfg7.t_ftimwin  = 5./cfg7.foi;
cfg7.tapsmofrq  = 0.4 *cfg7.foi;
cfg7.toi        = -0.5:0.05:1.5;

TFRmult = freqanalysis(cfg7, dataFIC);

cfg8 = [];
cfg8.baseline   = [-0.5 -0.1];
cfg8.zlim       = [-3e-27 3e-27];
cfg8.showlabels = 'yes';
cfg8.layout      = 'CTF151.lay';

multiplotTFR(cfg8, TFRmult);


Can anyone give me a clue on what I'm doing wrong ???

Best Regards,
Carina Graversen



More information about the fieldtrip mailing list