MATLAB: Error: Unable to locate ‘mexopts.bat’

compilermexopts.batmppt

I am trying to simulate the file in the following link-
But i am getting a error message "Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler." Please somebody suggest some solution of it.

Best Answer

I would suggest you follow the advice of the error message! Type this at the command line:
mex -setup
Related Question