<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Fabio, 
<div class=""> </div>
<div class="">I rarely use Matlab on windows myself, so I don’t have a solution handy. As Robert suggested earlier, the error is likely caused by the compiled mex file being incompatible with your computer.</div>
<div class="">Typing the error in google led me to the documentation below, perhaps you can take it from there.</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://www.mathworks.com/matlabcentral/answers/92040-why-do-i-receive-a-specified-module-could-not-be-found-error-while-running-a-mex-file-created-from" class="">https://www.mathworks.com/matlabcentral/answers/92040-why-do-i-receive-a-specified-module-could-not-be-found-error-while-running-a-mex-file-created-from</a><br class="">
<div><br class="">
</div>
<div>Alternatively, you could try and recompile the mex-files on your computer, which in my experience on PCs requires some fooling around. As a last resort, you could remove the .mexw64 file altogether, and rely in the slower *.m file.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Good luck,</div>
<div><br class="">
</div>
<div>Jan-Mathijs</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 24 Mar 2020, at 11:36, Fabio Masina <fabio.masina83@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Dear Community,<br class="">
<br class="">
<div class="">my name is Fabio and I'm not a Fieldtrip expert. So my apologies if my question will seem trivial.</div>
<div class=""><br class="">
</div>
I'm facing a problem when I try to run the function ft_freqstatistics. Actually, I'm trying to call the ft_freqstatistics function from Brainstorm and the error shows:<br class="">
Error: [process_ft_freqstatistics]  Test > FieldTrip: ft_freqstatistics<br class="">
** Line 101: Invalid MEX-file 'C:\Users\fabio\Documents\Research\Analyses\EEG\fieldtrip-20200320\fieldtrip-20200320\private\combineClusters.mexw64': Impossibile trovare il modulo specificato.<br class="">
<br class="">
Typing in the Matlab command window the command "combineClusters", again the error message shows:<br class="">
Invalid MEX-file<br class="">
'C:\Users\fabio\Documents\Research\Analyses\EEG\fieldtrip-20200320\fieldtrip-20200320\private\combineClusters.mexw64':<br class="">
Impossibile trovare il modulo specificato.<br class="">
<br class="">
These are my current versions of Fieldtrip, Matlab, and OS: fieldtrip-20200320, Matlab R2019b, Windows 10 v1903 (OS Builds 18362.720).<br class="">
<br class="">
Following a suggestion, I tried to check if some dll file missing on my computer. Thus, I used the Dependency Walker utility
<a href="http://www.dependencywalker.com/" class="">http://www.dependencywalker.com</a>. However, I'm not able to correctly use this utility, especially I cannot interpret the output.<br class="">
<br class="">
Have you some suggestions? Any help would be appreciated.<br class="">
<br class="">
Best,<br class="">
<br class="">
Fabio<br clear="all" class="">
<br class="">
-- <br class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<b class="">Fabio Masina, PhD<br class="">
</b></div>
<span class=""><br class="">
</span>IRCCS, Ospedale San Camillo<br class="">
Via Alberoni 70, <span class="">30126 <br class="">
Venice, Italy</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>