MATLAB: ‘name.bat’ is not recognized as an internal or external command, operable program or batch file in matlab

stateflow

hi when i am trying to run a stateflow model of name"test.mdl" i am getting an error
Making simulation target "test_sfun", …
'test_sfun.bat' is not recognized as an internal or external command, operable program or batch file. i am using wndows 7 64 bit os and matlab R2012a
i installed windows sdk 7.1 also. please help me for this

Best Answer

Have you run "mex -setup" on your R2012a installation? I have run into a similar issue in the past, and running "mex -setup" fixed it for me.