Intro:

MEX-files are dynamically linked subroutines that can be called from within MATLAB. They provide a means by which users can develop their application in C or FORTRAN and interface it with MATLAB.

Note: C++ MEX-files are not supported in MATLAB 5.3 or earlier.

This tutorial provides the following:
- a general overview of C MEX-files
- a detailed explanation of the external interface functions (or gateway routines)
- C MEX-file code examples that demonstrate the use of the external interface functions

Back to Table of Contents