User`s guide

ii Contents
UNIX Workstation ..................................... 2-5
SystemRequirements ................................. 2-5
Installation . ......................................... 2-7
mexVerification...................................... 2-8
MATLABCompilerVerification ........................ 2-12
Microsoft Windows on PCs ............................ 2-14
SystemRequirements ................................ 2-14
Installation . ........................................ 2-18
mexVerification..................................... 2-20
MATLABCompilerVerification ........................ 2-24
Troubleshooting ..................................... 2-26
mexTroubleshooting ................................. 2-26
TroubleshootingtheCompiler.......................... 2-28
3
Getting Started with MEX-Files
A Simple Example - The S ierpinski Gasket .............. 3-3
InvokingtheM-File ................................... 3-4
CompilingtheM-FileintoaMEX-File .................... 3-5
InvokingtheMEX-File ................................ 3-5
Compiler O ptions and Macros .......................... 3-7
Generating Simulink S-Functions ...................... 3-8
Simulink-SpecificOptions.............................. 3-8
SpecifyingS-FunctionCharacteristics .................... 3-9
Converting Script M-Files to Function M-Files .......... 3-11