CMEX-files
CMEX files in general have the following components:
All CMEX-files must include the following statement:mex.h is a header file that declares the entry point and interface routines.#include "mex.h"
The computational routine:
The gateway routine:
void mexFunction(int nlhs, mxArray *plhs[ ], int nrhs, const mxArray *prhs[ ]) { /* stuff */ }
Back to Table of Contents |
![]() ![]() |