MATLAB Compiler Previous page   Next Page

Compiling the Application

  1. Copy the file magicsquare.m from
  1. to your work directory.

  1. To compile the M-code, use
  1. The -m option tells the MATLAB Compiler (mcc) to generate a C stand-alone application. The -v option (verbose) displays the compilation steps throughout the process and helps identify other useful information such as which third-party compiler is used and what environment variables are referenced.

    This command creates the stand-alone application called magicsquare and additional files. The Windows platform appends the .exe extension to the name. See the table in Stand-Alone Executable for the complete list of files created.


Previous page  C Stand-Alone Application Target Testing the Application Next page

© 1994-2005 The MathWorks, Inc.