how to fix this error after runing stateflow program

1 view (last 30 days)
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 Comment
Kaustubha Govind
Kaustubha Govind on 30 Dec 2013
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.

Sign in to comment.

Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!