error offset

Marco SPERDUTI marco.sperduti at UPMC.FR
Wed Nov 26 16:30:45 CET 2008

Hi all,

i'm trying to do frequency analysis with mtmconvol, but it gives me
this error:

??? Reference to non-existent field 'offset'.

Error in ==> freqanalysis_mtmconvol at 323
     min_smp = min(data.offset);

Error in ==> freqanalysis at 192
[freq] = feval(sprintf('freqanalysis_%s', lower(cfg.method)), cfg, data);

Error in ==> field_trip_new at 42
TF_data = freqanalysis(cfg, data);

this is the command i'm using:
cfg = [];
cfg.output = 'powandcsd';
cfg.method = 'mtmconvol'; = 'MEG';
cfg.foi = 36;
cfg.toi = 0.800;
cfg.t_ftimwin = 1.000;
cfg.tapsmofrq = 4;
TF_data = freqanalysis(cfg, data);

any idea?

thanks a lot,


The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and

More information about the fieldtrip mailing list