MATLAB Compiler Previous page   Next Page

Including Script Files in Deployed Applications

Compiled applications consist of two layers of M-files. The top layer is the interface layer and consists of those functions that are directly accessible from C or C++.

In stand-alone applications, the interface layer consists of only the main M-file. In libraries, the interface layer consists of the M-files specified on the mcc command line.

The second layer of M-files in compiled applications includes those M-files that are called by the functions in the top layer. You can include scripts in the second layer, but not in the top layer.

For example, you could produce an application from the houdini.m script M-file by writing a new M-function that calls the houdini.m script, rather than converting the houdini.m script M-file into a function.

To produce the houdini_fcn executable, which will call the houdini.m script M-file, use


Previous page  Script Files Compiler Tips Next page

© 1994-2005 The MathWorks, Inc.