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

 Accepted Answer

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 Comments

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).
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.
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
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 ?
Yes, the MATLAB Compiler has been in existence for quite a long time. There's MATLAB Compiler in R2010b, R2010a, R2009n, etc...
How can i use 'SendKey' code to send the symbol ' from Matlab to notepad
I've no idea what you're talking about. Please start a new question, as it appears to be completely unrelated.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!