Simulink error: Unable to locate 'mexopts.bat'
2 次查看(过去 30 天)
显示 更早的评论
Hi guys, Im working on a Simulink model that contains some embedded function blocks, but whenever I try running it, it always stops compiling & gives me the 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.
How do i fix this error? Im running Matlab R2010a, & have gone through all the steps of installing Visual C++ 2010 express, & patched it with the patch provided by Mathworks. Before running the Simulink block I've used Mex -Setup & selected the C++ 2010 compiler, I've even tried using a previous version (Visual C++ 2008 Express), but I still get the same error.
Can anyone shed some light on this situation? Any help at all is appreciated.
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!