How to resolve error:Unable to locate ‘mexopts.bat’
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Ryan Livingston
2013-3-5
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!