Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to become my Matlab application to executable file?

Status
Not open for further replies.

Guest


Hi anybody,

It seems to be that there is a possibility to become a set of .m files to an executable application, you know, an independent file which not need the Matlab enviroment to work. I believe that the complete process is the following:

1) To compile my application (a set of .m files that not use toolboxes or special dlls or other tools of Matlab) with the Matlab compiler, of which there are two versions. The Matlab Help talks something about a command like this:

mcc -m file1.m file2.m (generates C code files)
mcc -m file1.m file2.m (generates C++ code files)

The result is a set of C or C++ code files.
This step is actually a traduction, isn't is?

2) Then, the files in C or C++ code have to be compiled or built into the C or C++ Compiler to become the set of files to executables.

The questions are:

* Is this process correct?
* Is yes, What kind of C or C++ Compiler must I use? Borland, Microsoft, whatever?
* How must I do from the beginning (step by step) to reach it?
* Is there any better compiler to get on Internet? (Something similar to "wavcom"? It is something than I have heared)

Thanks in advance, (specially to Joe3)

Cris
 
Replies continue below

Recommended for you

Hi,
The Matlab compiler is a toolbox that you have to purchase. You also need a C/C++ compiler that is supported by the Matlab compiler. Te visual C, Borland and Watcom are supported for sure. Also, depends on your Matlab version, the version of the C/C++ compiler is important.
Matlab 6 compiler is easy to install but earlier versions are less user friendly (there are also some misleading instruction in the documentation).
Without the toolbox you can still be able to compile .mex files. These are .dlls that works only under the Matlab environment (you still need the C\C++ compiler).

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor