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 ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by