MATLAB: Problem while repeating what is done in Stateflow tutorial

simulinkstateflow

I exactly repeated what is done in the 'getting started' video tutorial for stateflow (<http://www.mathworks.com/videos/getting-started-with-stateflow-70063.html)>.
However, when running the model (which I called 'Decision_logic'), I am getting this error:
"Making simulation target "Decision_logic_sfun", …
'Decision_logic_sfun.bat' is not recognized as an internal or external command, operable program or batch file. "
Any idea why I am getting this error and how to fix it?
Thanks

Best Answer

Please see if this previous discussion helps.
Related Question