Can i produce standalone window application from Matlab's script?

1 次查看(过去 30 天)
Hi,
I would like to know if i could produce a standalone window application (.EXE) from a Matlab's script (and also MATLAB GUI) ? If yes, how do i do it?
Thank you.
Regards Michael

回答(2 个)

Walter Roberson
Walter Roberson 2011-9-21
I believe that in order to convert a MATLAB "script" file to a standalone executable, you need to be using MATLAB 2010b or later. The same restriction does not apply to MATLAB function files. A MATLAB GUI is, for this purpose, a MATLAB function file.
You need the (optional) MATLAB Compiler to do this compilation.
Reference note: the MATLAB Compiler cannot be used with the Student Version.

topdawgnate
topdawgnate 2011-9-21
I recommend using the "deploytool" function http://www.mathworks.com/help/toolbox/compiler/deploytool.html
With this tool, you can add all the dependents (.m, .fig, etc) and it will create the .exe file. One caveat to this, you will need to install the MCRInstaller on any target computer not running Matlab (or the same version of Matlab).

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by