×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to become my Matlab application to executable file?

How to become my Matlab application to executable file?

How to become my Matlab application to executable file?

(OP)


   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

RE: How to become my Matlab application to executable file?

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources