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

1 view (last 30 days)
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

Answers (2)

Walter Roberson
Walter Roberson on 21 Sep 2011
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 on 21 Sep 2011
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).

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!