MATLAB Compiler    

Working
with MEX-Files


This chapter gets you started compiling M-files with the MATLAB Compiler.
A Simple Example -- The Sierpinski Gasket
Creating a MEX-file from an M-file
Compiler Options and Macros
Overview of options and macros
Generating Simulink S-Functions
Generating Simulink C MEX S-functions
Converting Script M-Files to Function M-Files
Converting scripts to functions


  Troubleshooting the Compiler A Simple Example -- The Sierpinski Gasket