Convert Matlab Gui to stand alone program

Convert Matlab Gui to stand alone program

Post by Antoine Kh » Wed, 31 Dec 2008 07:32:01



I created a GUI in Matlab and it is require the computer to have Matlab install for the Gui to run. I heard that there is a program that translate MAtlab code into C and then create an .exe program. Anybody know the name of that program and how reliable is the conversion process? The reason I use MAtlab for my program is because I need the lsqcurvefit of MAtlab. Does the conversion cause any problem with that?
Thanks in advance
 
 
 

Convert Matlab Gui to stand alone program

Post by ImageAnaly » Wed, 31 Dec 2008 08:29:18


----------------------------------------------
Antoine:
I don't know what you mean by "any problem." You need to buy the
compiler product. Then you issue a command like "mcc -m myMFile.m"
and it builds a single executable. It finds and builds in all the
dependent m-files and functions in toolboxes that it needs. You then
need to distribute the executable, the MATLAB runtime library, and any
files you read in at run time, such as splash images, initial settings
stored in a mat file, sample data files or Excel template files, etc.
You do not need to distribute lsqcurvefit (), the fig file, or the
toolboxes - these are built in to the executable.

There is no intermediate source code file in C, so there is no such
conversion, and no C or Java code for you to inspect. It goes
directly from the m-file to the .exe all in one shot.

The only quirky thing is that the startup.m file gets built in and
gets run before your code gets run, and that the current working
directory is not the executable's folder (it's the default MATLAB
folder, probably My Documents\MATLAB).
Regards,
ImageAnalyst

 
 
 

Convert Matlab Gui to stand alone program

Post by Walter Rob » Sat, 03 Jan 2009 19:31:58


Sorry, that program has not been sold for a number of years now. The current matlab
compiler no longer compiles to C, it compiles to threaded calls into the Matlab
library.

--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?