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?

 채택된 답변

Pawel Blaszczyk
Pawel Blaszczyk 2011년 9월 30일

1 개 추천

Have you tried set up your compiler:
mex -setup

댓글 수: 6

sara
sara 2011년 9월 30일
what do you mean by that?
Walter Roberson
Walter Roberson 2011년 9월 30일
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 2011년 9월 30일
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 2011년 9월 30일
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 2011년 9월 30일
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 2011년 12월 14일
how do you reinstall the compilers?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

질문:

2011년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by