[FieldTrip] [SPAM] Problems with ft_freqanalysis
Frédéric Roux
f.roux at bcbl.eu
Thu Apr 16 11:50:06 CEST 2015
Hi Fredrica,
this is most likely do to a path problem.
Try adding this at the beginning of your script/function:
restorde_defaultpath;
addpath('/path2fieldtrip/fieldtrip-2015xxxx/');
ft_defaults;
HTH
--
Frédéric Roux
Postdoctoral Scientist
BCBL. Basque Center on Cognition, Brain % Language.
f.roux at bcbl.eu
Tel: +34 943 309 300 Ext 211
Fax: +34 943 309 052
Legal disclaimer/Aviso legal/Lege-oharra: www.bcbl.eu/legal-disclaimer
---------------------------------------------------------------------------
----- Original Message -----
From: "Federica Mauro" <federica.ma at gmail.com>
To: "donders fieldtrip" <fieldtrip at donders.ru.nl>
Sent: Thursday, April 16, 2015 11:41:17 AM
Subject: [SPAM] [FieldTrip] Problems with ft_freqanalysis
Hi everybody,
I'm trying to compute coherence analyses following the coherence tutorial at http://www.fieldtriptoolbox.org/tutorial/coherence .
Since a couple of days, I have this error message in computing ft_freqanalysis:
Error using load
Unable to read file precompute_dpss: No such file or directory.
Error in dpss (line 9)
load precompute_dpss
Error in ft_specest_mtmfft>double_dpss (line 335)
tap = dpss(double(a), double(b), varargin{:});
Error in ft_specest_mtmfft (line 151)
tap =
double_dpss(ndatsample,ndatsample*(tapsmofrq./fsample))';
Error in ft_freqanalysis (line 494)
[spectrum,ntaper,foi] = ft_specest_mtmfft(dat, time, 'taper',
cfg.taper, options{:}, 'feedback', fbopt);
Is that a bug?
Here is the code I'm using:
cfg = [];
cfg.output = 'powandcsd';
cfg.method = 'mtmfft';
cfg.foilim = [5 40];
cfg.tapsmofrq = 5;
cfg.keeptrials = 'yes';
freq = ft_freqanalysis(cfg, eeg);
Thank you in advance,
Federica
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list