MATLAB Compiler    

Compiling the M-File into a MEX-File

To create a MEX-file from this M-file, enter the mcc command at the MATLAB interpreter prompt.

This mcc command generates:

mcc automatically invokes mex to create gasket.mex from gasket.c and gasket_mex.c. The mex utility encapsulates the appropriate C compiler and linker options for your system.

This example uses the -x macro option to create the MEX-file. For more information on this Compiler option as well as the other options, see the mcc reference page. For more information on the files that the Compiler generates, see Chapter 5, Controlling Code Generation.


 Invoking the M-File Invoking the MEX-File