Compiling Your M-File

Running Embedded MATLAB MEX

You run Embedded MATLAB MEX from the MATLAB command prompt by using the emlmex function. The basic command is:

emlmex M_fcn

By default, emlmex performs the following actions:

You can modify this default behavior by specifying one or more compiler options with emlmex, separated by spaces on the command line. See Options for emlmex in the Embedded MATLAB Reference.

Generated Files and Locations

Embedded MATLAB MEX generates files in the following locations:

Generates:In:

Platform-specific C-MEX files

Current directory

HTML reports

(if errors or warnings occur during compilation)

Default output directory:

emcprj/mexfcn/M_fcn_name/html

You can change the name and location of generated files by using the options -o and -d when you run Embedded MATLAB MEX (see emlmex).

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS