User`s guide

Overview of the C MEX S-Function Routines
3-15
Overview of the C MEX S-Function Routines
The following figure shows the calling structure, including optional S-function
routines (methods), of a C MEX S-function: