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
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 个)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by