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, see the mcc reference page. For more information on the files that the Compiler generates, see Controlling Code Generation.


  A Simple Example -- The Sierpinski Gasket Invoking the MEX-File