MATLAB Answers

unable to locate 'mexopts.bat' in matlab version 7.9.0(R2009b)

3 views (last 30 days)
santhi krishna
santhi krishna on 1 Oct 2011
Hi, I'm a PG student, doing my project using matlab software. Initially I had started working with matlab version 7.8.0(r2009a), then I had changed to work with matlab version 7.9.0(r2009b). Now I had faced a problem. The problem is that, model files which I had designed with the version 7.8.0, shows a runtime error in the version 7.9.0. Error is that 1. Code error: Unable to locate 'mexopts.bat', and therfore cannot determine which compiler to use for similation builds. use mex-setup to select a supported compiler. 2. Model error 3. Parse log
Which compiler should I select for mex-setup error?
So pls help me to solve this problem.


Sign in to comment.

Accepted Answer

Jan on 1 Oct 2011
  1. Run mex -setup manually from the command line.
  2. Select the compiler, you have installed.
  3. If you did not install a compiler already, install one. Here is a list of compatible compilers. (Currently the server is down, so please wait. 01-Oct-2011 10:29 UTC)


Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by