MATLAB Compiler    

Verifying the MATLAB Compiler

There is MATLAB code for an example, hello.m, included in the <matlab>\extern\examples\compiler directory. To verify that the MATLAB Compiler can generate stand-alone applications on your system, type the following at the MATLAB prompt.

This command should complete without errors. To run the stand-alone application, hello, invoke it as you would any other Windows console application, by typing its name on the MS-DOS command line. The application should run and display the message Hello, World.

When you execute the mcc command to link files and libraries, mcc actually calls the mbuild script to perform the functions.

About the mbuild Script

The mbuild script supports various options that allow you to customize the building and linking of your code. Many users do not need to know any additional details of the mbuild script; they use it in its simplest form. For complete information about the mbuild script and its options, see the mbuild reference page.


  Verifying mbuild Using an Integrated Development Environment