User`s manual
1 Calling C and Fortran Programs from MATLAB
1-46
<matlab>\extern\include
The <matlab>\extern\include directory contains the header files for 
developing C and C++ applications that interface with MATLAB.
The relevant header files for the MATLAB API (MEX-files, engine, and 
MAT-files) are:
engine.h Header file for MATLAB engine programs. Contains 
function prototypes for engine routines.
mat.h Header file for programs accessing MAT-files. 
Contains function prototypes for 
mat routines.
matrix.h Header file containing a definition of the mxArray 
structure and function prototypes for matrix access 
routines.
mex.h Header file for building MEX-files. Contains function 
prototypes for 
mex routines.
_*.def Files used by Borland compiler.
*.def Files used by MSVC and Microsoft Fortran compilers.
mexversion.rc Resource file for inserting versioning information into 
MEX-files.
<matlab>\extern\src
The <matlab>\extern\src directory contains files that are used for debugging 
MEX-files.
Examples
This book uses many examples to show how to write C and Fortran MEX-files.
Examples From the Text
The refbook subdirectory in the extern/examples directory contains the 
MEX-file examples (C and Fortran) that are used in this book, External 
Interfaces.
You can find the most recent versions of these examples using the anonymous 
FTP server locations
ftp://ftp.mathworks.com/pub/tech-support/docexamples/apiguide/
R12/refbook










