Main Content

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 thepathfunction. You can add new folders to the path either by using theaddpathfunction, or by selectingFile>SetPathto edit the path.

MEX Files onWindowsNetwork 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.

See Also

|