[FieldTrip] Issue with ft_freqanalysis
Karen Konkoly
karenkonkoly at gmail.com
Sat Oct 24 03:06:26 CEST 2020
Hi!
I am trying to run the following time frequency analysis:
starttime = 171.211000000000
endtime = 174.211000000000
cfg = [];
cfg.method = 'mtmconvol';
cfg.foi = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29]
cfg.toi = [starttime:.1:endtime]
cfg.t_ftimwin = [.5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5 .5
.5 .5 .5 .5 .5 .5 .5 .5 .5 .5]
freq = ft_freqanalysis(cfg, EEGdat);
It starts running, but then I get many errors:
Reference to non-existent field 'dimord'.
Error in dimlength (line 74)
elseif strcmp(data.(fld), 'rpt_pos')
Error in fixsampleinfo (line 57)
ntrial = dimlength(data, 'rpt');
Error in ft_datatype_timelock (line 152)
timelock = fixsampleinfo(timelock);
Error in ft_checkdata (line 269)
data = ft_datatype_timelock(data, 'hassampleinfo', hassampleinfo);
Error in ft_freqanalysis (line 212)
data = ft_checkdata(data, 'datatype', {'raw', 'raw+comp', 'mvar'},
'feedback',
cfg.feedback, 'hassampleinfo', 'yes');
I am still making sure I have FieldTrip installed properly (after following
the instructions, the "eeglab2fieldtrip" function did not work unless I
added the subdirectory it was in to my matlab path manually, which I know
Fieldtrip is supposed to do automatically).
Any advice on how to overcome these errors?
Best,
Karen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201023/d012260e/attachment-0001.htm>
More information about the fieldtrip
mailing list