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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by