<div dir="ltr"><div dir="ltr"><div>Hi Jan-Mathij,</div><div><br></div><div>interestingly, after removing the .mex files altogether (i.e. combineClusters.mexa64, combineClusters.mexw32, and combineClusters.mexw64) I could run the ft_freqstatistics function. So it apparently works.</div><div><br></div><div>Thanks for your suggestions,</div><div><br></div>Fabio</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 25 mar 2020 alle ore 09:35 Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
Hi Fabio, 
<div> </div>
<div>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>Typing the error in google led me to the documentation below, perhaps you can take it from there.</div>
<div><br>
</div>
<div><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" target="_blank">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>
<div><br>
</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>
</div>
<div><br>
</div>
<div>Good luck,</div>
<div><br>
</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div>On 24 Mar 2020, at 11:36, Fabio Masina <<a href="mailto:fabio.masina83@gmail.com" target="_blank">fabio.masina83@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Dear Community,<br>
<br>
<div>my name is Fabio and I'm not a Fieldtrip expert. So my apologies if my question will seem trivial.</div>
<div><br>
</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>
Error: [process_ft_freqstatistics]  Test > FieldTrip: ft_freqstatistics<br>
** 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>
<br>
Typing in the Matlab command window the command "combineClusters", again the error message shows:<br>
Invalid MEX-file<br>
'C:\Users\fabio\Documents\Research\Analyses\EEG\fieldtrip-20200320\fieldtrip-20200320\private\combineClusters.mexw64':<br>
Impossibile trovare il modulo specificato.<br>
<br>
These are my current versions of Fieldtrip, Matlab, and OS: fieldtrip-20200320, Matlab R2019b, Windows 10 v1903 (OS Builds 18362.720).<br>
<br>
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/" target="_blank">http://www.dependencywalker.com</a>. However, I'm not able to correctly use this utility, especially I cannot interpret the output.<br>
<br>
Have you some suggestions? Any help would be appreciated.<br>
<br>
Best,<br>
<br>
Fabio<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<b>Fabio Masina, PhD<br>
</b></div>
<span><br>
</span>IRCCS, Ospedale San Camillo<br>
Via Alberoni 70, <span>30126 <br>
Venice, Italy</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><b>Fabio Masina, PhD<br></b></div><span><br></span>IRCCS, Ospedale San Camillo<br>Via Alberoni 70, <span>30126 <br>Venice, Italy</span></div></div></div></div></div></div></div></div></div></div></div></div></div>