<div dir="ltr"><div><div>Thanks, you've been really helpful.<br><br></div>Thanks also for the tip on the taper cfg, Looking forward to the seminar!<br><br></div>Federica<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-16 11:50 GMT+02:00 Frédéric Roux <span dir="ltr"><<a href="mailto:f.roux@bcbl.eu" target="_blank">f.roux@bcbl.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fredrica,<br>
<br>
this is most likely do to a path problem.<br>
<br>
Try adding this at the beginning of your script/function:<br>
<br>
restorde_defaultpath;<br>
addpath('/path2fieldtrip/fieldtrip-2015xxxx/');<br>
ft_defaults;<br>
<br>
HTH<br>
<br>
--<br>
Frédéric Roux<br>
Postdoctoral Scientist<br>
BCBL. Basque Center on Cognition, Brain % Language.<br>
<br>
<a href="mailto:f.roux@bcbl.eu">f.roux@bcbl.eu</a><br>
Tel: <a href="tel:%2B34%20943%20309%20300%20Ext%20211" value="+34943309300">+34 943 309 300 Ext 211</a><br>
Fax: <a href="tel:%2B34%20943%20309%20052" value="+34943309052">+34 943 309 052</a><br>
<br>
Legal disclaimer/Aviso legal/Lege-oharra: <a href="http://www.bcbl.eu/legal-disclaimer" target="_blank">www.bcbl.eu/legal-disclaimer</a><br>
---------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
----- Original Message -----<br>
From: "Federica Mauro" <<a href="mailto:federica.ma@gmail.com">federica.ma@gmail.com</a>><br>
To: "donders fieldtrip" <<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>><br>
Sent: Thursday, April 16, 2015 11:41:17 AM<br>
Subject: [SPAM] [FieldTrip] Problems with ft_freqanalysis<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Hi everybody,<br>
<br>
I'm trying to compute coherence analyses following the coherence tutorial at <a href="http://www.fieldtriptoolbox.org/tutorial/coherence" target="_blank">http://www.fieldtriptoolbox.org/tutorial/coherence</a> .<br>
Since a couple of days, I have this error message in computing ft_freqanalysis:<br>
<br>
Error using load<br>
Unable to read file precompute_dpss: No such file or directory.<br>
<br>
Error in dpss (line 9)<br>
load precompute_dpss<br>
<br>
Error in ft_specest_mtmfft>double_dpss (line 335)<br>
tap = dpss(double(a), double(b), varargin{:});<br>
<br>
Error in ft_specest_mtmfft (line 151)<br>
tap =<br>
double_dpss(ndatsample,ndatsample*(tapsmofrq./fsample))';<br>
<br>
Error in ft_freqanalysis (line 494)<br>
[spectrum,ntaper,foi] = ft_specest_mtmfft(dat, time, 'taper',<br>
cfg.taper, options{:}, 'feedback', fbopt);<br>
<br>
Is that a bug?<br>
<br>
<br>
Here is the code I'm using:<br>
cfg = [];<br>
cfg.output = 'powandcsd';<br>
cfg.method = 'mtmfft';<br>
cfg.foilim = [5 40];<br>
cfg.tapsmofrq = 5;<br>
cfg.keeptrials = 'yes';<br>
<br>
freq = ft_freqanalysis(cfg, eeg);<br>
<br>
<br>
Thank you in advance,<br>
Federica<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div></div></blockquote></div><br></div>