|On this page…|
On Windows® systems, if you move the MATLAB® executable without reinstalling the MATLAB software, you might need to modify mex.bat to point to the new MATLAB location.
If you have problems building MEX-files on Windows systems and there is a space in any of the folder names within the MATLAB path, either reinstall MATLAB into a path name that contains no spaces or rename the folder that contains the space. For example, if you install MATLAB under the Program Files folder, you might have difficulty building MEX-files with certain C/C++ compilers.
Some antivirus software packages might conflict with the mex -setup process or other mex commands. If you get an error message of the following form in response to a mex command:
mex.bat: internal error in sub get_compiler_info(): don't recognize <string>
then you need to disable your antivirus software temporarily and reenter the command. After you have successfully run the mex script, you can reenable your antivirus software.
Alternatively, you can open a separate MS-DOS® window and enter the mex command from that window.