how to fix this error after runing stateflow program
1 次查看(过去 30 天)
显示 更早的评论
Hi I am using Matlab 2010a. I have tried to run simple state-flow program, but always there is an error appears on the screen like this:
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 can understand what that mean is?
even though the result eas successful after using parse in tools, but I have this error
could one help me please?
thanks
1 个评论
Kaustubha Govind
2013-12-30
You need to run the command mex -setup at the MATLAB prompt and select a supported and installed C compiler. Stateflow generates C code from the chart for execution. However, it needs a C compiler first to compile the generated C code.
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!