Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

'name.bat' is not recognized as an internal or external command, operable program or batch file in matlab

Asked by shankar on 1 Jun 2012

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

0 Comments

shankar

Tags

Products

1 Answer

Answer by Kaustubha Govind on 1 Jun 2012
Accepted 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.

3 Comments

naveen on 22 Jul 2013

Hello,

Mex-Setup! where can I find this installation file. Please help me...

Kaustubha Govind on 23 Jul 2013

It's a MATLAB command. Just run "mex -setup" (without the quotes) at the MATLAB prompt.

ROHIT RAMTEKE on 25 Aug 2013

Thank you very much.....its really rocking in my model.

Kaustubha Govind

Contact us