MEX File Placement
Put your MEX files in a folder on the MATLAB® path. Alternatively, run MATLAB from the folder containing the MEX file. MATLAB runs functions in the current working folder before functions on the path.
To see the current folders on your path, use the
You can add new folders to the path either by using the
function, or by selecting File > SetPath to edit the path.
MEX Files on Windows Network Drives
Windows® network drive file servers do not always report folder and file changes correctly. If you change a MEX file on a network drive and MATLAB does not use the latest changes, change folders away from and then back to the folder containing the file.