I use windows 7, 64 bit. I am running a simulink file in Matlab. I face to this error:
Making simulation target "Model_1_sfun", ...
'Model_1_sfun.bat' is not recognized as an internal or external command, operable program or batch file.
any body knows how should I fix that?

 Réponse acceptée

Pawel Blaszczyk
Pawel Blaszczyk le 30 Sep 2011

1 vote

Have you tried set up your compiler:
mex -setup

6 commentaires

sara
sara le 30 Sep 2011
what do you mean by that?
Walter Roberson
Walter Roberson le 30 Sep 2011
At the MATLAB command line, issue the command
mex -setup
and choose the compiler you want to use.
As you are using Windows 64 bit, you will need to do more than one step to install the full compilers. Please read through
http://www.mathworks.com/support/compilers/R2011b/win64.html
sara
sara le 30 Sep 2011
Thank you for your answer. I already installed both microsoft visual C++ 2010 express and microsoft windows SDK 7.1.
should I install some thing else you think?
sara
sara le 30 Sep 2011
when I select my compiler this warning return:
Warning: MEX-files generated using Microsoft Visual C++ 2010 require
that Microsoft Visual Studio 2010 run-time libraries be
available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
***************************************************************************
Trying to update options file: C:\Users\ehos\AppData\Roaming\MathWorks\MATLAB\R2011a\mexopts.bat
From template: C:\PROGRA~1\MATLAB\R2011a\bin\win64\mexopts\msvc100freeopts.bat
Done . . .
**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
Use the -help option for more information, or consult the MATLAB API Guide.
sara
sara le 30 Sep 2011
I just reinstalled the compilers. that worked. thank you so much.I had wasted a couple of days for that :-)
Infant Joe Charles
Infant Joe Charles le 14 Déc 2011
how do you reinstall the compilers?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by