I would like to learn some user experience on MATLAB compiler and
MATCOM compiler from Mathtools. The particular interest is: will all
GUI functions work and how much rework is needed.
I have tried one evaluation version. For such commands like exist,
dos, load, eval, etc. one has to modify code and even that, not all
of them are working.
The goal is to get object files from existing MATLAB code for standalone
application or used by existing application written in C++
Any comments are appreciated.
The very newly released C/C++ Graphics Library contains support for many
of the graphics and gui elements in MATLAB. You can check out the
product page at:
http://www.mathworks.com/products/graphicslibrary/
The library uses the same libraries for plotting and user interfaces
that MATLAB uses, so your graphics will look and behave identically to
your MATLAB program.
While we were working on the Graphics Library we boosted the
functionality of the Compiler and Math Libraries also. We changed exist,
load, and save to more closely follow MATLAB's behavior. We also added
dir, cd, !, dos, and unix. The free updates for these products are
downloadable from the Access page.
Changes may be required to your code to compile it to a stand-alone
application. We do not support EVAL in stand-alone applications, for
example. The graphics library documentation contains a section that
specifically addresses the issues that you will encounter as you take an
application from MATLAB and make it into a stand-alone application.
-peter fry
The MathWorks, Inc.
Calvin Fu schrieb in Nachricht ...
>I would like to learn some user experience on MATLAB compiler and
>MATCOM compiler from Mathtools. The particular interest is: will all
>GUI functions work and how much rework is needed.
I actually try Matcom 4.5 beta, evaluation version. (I don't have the
Matlab-Compiler, because there is no evaluation-version, so I can't tell you
which one is better.)
I think it is a lot of work if you have to change an already existing
gui/Matlab-application that it also works with the "compiler". I think I
will construct the next application with the background that I want to
generate c-code of it.
There are some more questions. I just wrote a mail to the Mathtools-support.
I'm quite sure to get my gui running with matcom.
>I have tried one evaluation version. For such commands like exist,
>dos, load, eval, etc. one has to modify code and even that, not all
>of them are working.
I only use load and save (you have to change to the functional form, not
very difficult), eval (not supported, here it could be necessary to change
the algorithm to avoid the usage of eval).
Here are some actual problems I have and had:
There seem to be problems with "nested GUIs". The callbacks of a GUI that is
called from an other GUI don't get compiled (I found yesterday).
The polyfit does not support [P,S]=polyfit(...) but only P=polyfit(...). You
can only see it in the reference-manual if you look for polyfit.
I don't know how many more functions are only partially supported, this is
one I found.
The graphical outputs behave a little different (zoom, legend).
If you use callbacks you should rewrite them to function calls (see
'limitations' in the manual).
That's a part of my experiences with MATCOM of the last days.
Ralph