[FieldTrip] missing argument or incorrect argument data type function 'offset2time'
Manuela Ruzzoli
manuela.ruzzoli at gmail.com
Wed May 13 15:23:06 CEST 2020
Hi,
I need help solving an error that happens with Mac (Matlab2020a) but not
with Win (Matlab2017a), both using Fieldtrip 20191127.
The error occurs launching the ft_preprocessing and it's:
Check for missing argument or incorrect argument data type in call to
function 'offset2time'.
Error in ft_preprocessing (line 594)
tim = offset2time(offset, hdr.Fs, size(dat,2));
Here the code (I call this after ft_definetrial, using a customized
cfg.trialfun,
which is working fine):
%%%%%%%%% Parameters for pre-processing%%%%%%
cfg.channel = {'A*', 'B*', 'EXG1', 'EXG2', 'EXG3', 'EXG4','Status'};
cfg.reref = 'yes';
cfg.refchannel = {'EXG3','EXG4'}; % mastoids
cfg.dftfilter = 'yes';
cfg.dftfreq = [50 100 150];
cfg.detrend = 'yes';
cfg.demean = 'no';
data = ft_preprocessing(cfg);
%%%%%%%%% %%%%%%%%%%%%%%%%%%%%
Thanks
Manu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200513/e5360246/attachment.htm>
More information about the fieldtrip
mailing list