"Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler." I am getting this error. Suggest me what to do.

I was trying to simulate my PV array model using simulink, i got an these error messages. Pls tell me the step by step procedure to solve this.

 Accepted Answer

At the MATLAB command line, type exactly what the error message told you to type:
mex -setup
Then press Enter when it asks you if you want MATLAB to locate compilers. Then enter the number of the compiler you want to use from the list (hopefully there is at least one compiler listed).
If no compiler is listed, then you will have to install one.

More Answers (0)

Categories

Asked:

on 14 Jan 2014

Commented:

on 15 Jan 2014

Community Treasure Hunt

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

Start Hunting!