How to resolve error:Unable to locate ‘mexopts.bat’

7 Ansichten (letzte 30 Tage)
Tommy
Tommy am 5 Mär. 2013
Hi, I have run the model in Simulink called “Kinetic Energy Recovery System” which I found in “Help”. When I run the model, there is an 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.
What should I do to solve this problem? Please tell me.
Best regards, Tommy

Antworten (1)

Ryan Livingston
Ryan Livingston am 5 Mär. 2013
As per the error try:
mex -setup
and choose the compiler you have installed. That writes mexopts.bat for you so that Simulink and MATLAB can find your installed compiler.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by