When trying to build a simulink file, I have this error: '* sfun.bat' is not recognized as an internal or external command, operable program or batch file. An error appears also with the command 'mex -setup' (??? Error using ==> mex at 208 Unable)

4 views (last 30 days)
First Error Making simulation target "*_sfun", ... '*_sfun.bat' is not recognized as an internal or external command, operable program or batch file.
Second Error >> mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler: [1] Microsoft Visual C++ 2010 Express in C:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2010 Express Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
  2 Comments
Massita Cindy
Massita Cindy on 4 Dec 2016
I have the same problem. Already did mex -setup using Microsoft Visual C++ 2012 inside C:\Program Files (x86)\Microsoft Visual Studio 11.0\, have no problem with mex -setup. But, the error still appear when I tried to run my gui matlab. Did I miss something?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!