Why do I get a <model>.bat not found error when I compile my Simulink model?

When I compile my Simulink model which has Stateflow chart, why do I get the following error?
 
'<Model>.bat' is not recognized as an internal or external command, operable program or batch file.

 Accepted Answer

This happens because MATLAB is unable to find an appropriate compiler on your system. Stateflow generates a MEX file which needs a suitable compiler. To resolve this error, execute the following command in your MATLAB command window:
mex -setup

More Answers (0)

Categories

Products

Release

R2013a

Community Treasure Hunt

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

Start Hunting!