<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Federica,<div><br></div><div>The error message you run into relates to the presence (or absence) of the Mathworks signal processing toolbox. FieldTrip relies on a number of MATLAB toolboxes (see <a href="http://www.fieldtriptoolbox.org/faq/requirements">http://www.fieldtriptoolbox.org/faq/requirements</a>). Where possible, we try to avoid extra commercial toolboxes. Therefore we have some drop-in replacement functions in fieldtrip/external/signal (which were obtained from the Octave project). For the DPSS function (used for multitapering) however we don’t have a fully satisfactory solution.</div><div><br></div><div>The error message you get suggests that you are using the "fieldtrip/external/signal/dpss_hack” directory. That is one that should not be on your path, unless you explicitly add it. You should only add in case you don’t have the signal processing toolbox and know what you are doing (i.e. after having read the README in that directory).</div><div><br></div><div>I suspect you have used add path(genpath(…)) or the GUI equivalent of it. Please see <a href="http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path">http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path</a> and remove the dpss_hack directory from your path.</div><div><br></div><div>best</div><div>Robert</div><div><br></div><div>PS for the low frequency range you are interested in I suspect that multitapering won’t be the most optimal anyway. Better add cfg.taper=‘hanning’ to your analysis, and see Nietzsche explain it next Monday on <a href="https://www.youtube.com/watch?v=vwPpSglPJTE">https://www.youtube.com/watch?v=vwPpSglPJTE</a></div><div> <br><div><div><br></div><div><br><div><div>On 16 Apr 2015, at 11:41, Federica Mauro <<a href="mailto:federica.ma@gmail.com">federica.ma@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi everybody,<br>
<br>
</div>
I'm trying to compute coherence analyses following the coherence tutorial at <a href="http://www.fieldtriptoolbox.org/tutorial/coherence">
http://www.fieldtriptoolbox.org/tutorial/coherence</a>.<br>
</div>
Since a couple of days, I have this error message in computing ft_freqanalysis:<br>
<br>
<i>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);</i><br>
<br>
</div>
Is that a bug?<br>
<br>
<br>
</div>
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>
</div>
Thank you in advance,<br>
</div>
Federica<br>
</div>
</div>

_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></div></div></div></body></html>