How to create exe file in Matlab 2009a from .m file ??

 採用された回答

Arnaud Miege
Arnaud Miege 2011 年 4 月 7 日

1 投票

You need to use the MATLAB Compiler to generate an executable. The executable uses a runtime engine called the MATLAB Compiler Runtime (MCR), which needs to be installed on the end-user machine before he can run the executable. You can freely redistribute the MCR if you have a license of the MATLAB Compiler.
HTH,
Arnaud

8 件のコメント

yatin kharbe
yatin kharbe 2011 年 4 月 10 日
Is the Matlab Complier available free to download from net?
If yes .. Pleaase do paste the link.
Since i tried before asking the previous question and it bore me the following result
And i am using Matlab 2009a
..
>> mcc -m vk1234
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2009a\sys\lcc
[0] None
Compiler: 1
Trying to update options file: C:\Documents and Settings\student\Application Data\MathWorks\MATLAB\R2009a\compopts.bat
From template: C:\PROGRA~1\MATLAB\R2009a\bin\win32\mbuildopts\lcccompp.bat
Done . . .
'cmd' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).
Walter Roberson
Walter Roberson 2011 年 4 月 10 日
The MATLAB compiler cannot be freely downloaded, except the trial version upon appropriate registration and cross-checking by the sales force. The MATLAB compiler is an optional extra-cost product.
Note for future reference: The MATLAB compiler cannot be used with any MATLAB Student Edition.
Arnaud Miege
Arnaud Miege 2011 年 4 月 11 日
No, the MATLAB Compiler is not free, as Walter pointed out. For the error you're seeing, you may want to contact technical support. Also check out this bug report:
http://www.mathworks.com/support/bugreports/565891
yatin kharbe
yatin kharbe 2011 年 4 月 15 日
Will i able to make an exe file if i get matlab 2009b version installed or any other higher version like 2010b etc of b category ?
Arnaud Miege
Arnaud Miege 2011 年 4 月 15 日
Yes, the MATLAB Compiler has been in existence for quite a long time. There's MATLAB Compiler in R2010b, R2010a, R2009n, etc...
yatin kharbe
yatin kharbe 2011 年 4 月 15 日
Thanks a lot
yatin kharbe
yatin kharbe 2011 年 4 月 27 日
How can i use 'SendKey' code to send the symbol ' from Matlab to notepad
Arnaud Miege
Arnaud Miege 2011 年 4 月 27 日
I've no idea what you're talking about. Please start a new question, as it appears to be completely unrelated.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by