User`s guide

3
Getting Started
with MEX-Files
A Simple Example - The Sierpinski Gasket ......3-3
InvokingtheM-File .................3-4
Compiling the M -File into a MEX-File . . . . . . . . . . 3-5
InvokingtheMEX-File................3-5
Compiler O ptions and Macros ............3-7
Generating Simulink S-Functions ..........3-8
Simulink-SpecificOptions...............3-8
Specifying S-Function Characteristics . . . . . . . . . . 3-9
Converting Script M-Files to Function M-Files . . . . 3-11