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

 Respuesta aceptada

Arnaud Miege
Arnaud Miege el 7 de Abr. de 2011

1 voto

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 comentarios

yatin kharbe
yatin kharbe el 10 de Abr. de 2011
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 el 10 de Abr. de 2011
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 el 11 de Abr. de 2011
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 el 15 de Abr. de 2011
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 el 15 de Abr. de 2011
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 el 15 de Abr. de 2011
Thanks a lot
yatin kharbe
yatin kharbe el 27 de Abr. de 2011
How can i use 'SendKey' code to send the symbol ' from Matlab to notepad
Arnaud Miege
Arnaud Miege el 27 de Abr. de 2011
I've no idea what you're talking about. Please start a new question, as it appears to be completely unrelated.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by