Issue running a .m file in MATLAB - Possibly Psychtoolbox related

Hello. I recently bought MATLAB and downloaded Psychtoolbox and have begun playing around to learn different functions. A fellow Research Assistant provided two .m files to run and understand. However, when I try to run the file, I am met with this error message:
"??? Invalid MEX-file 'C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\PsychHID.mexw64': The specified module could not be found.
Error in ==> (Name of specific file removed) at 6 numDevices=PsychHID('NumDevices')"
Can anyone help me? Am I missing something? I would be very grateful to any help.
Thank you

 Accepted Answer

Either you are missing the mex file or you have the 32 bit version of the mex file but you are running the 64 bit version of MATLAB.
Alternately if you are missing something that the mex file depends on, then you might get the error. You could load Dependency Walker from the internet and use that to trace that possibility.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!