External Interfaces/API    

Files and Directories - Windows Systems

This section describes the directory organization and purpose of the files associated with the MATLAB API on Microsoft Windows systems.

The following figure illustrates the directories in which the MATLAB API files are located. In the illustration, <matlab> symbolizes the top-level directory where MATLAB is installed on your system.

<matlab>\bin\win32

The <matlab>\bin\win32 directory contains the mex.bat batch file that builds C and Fortran files into MEX-files. Also, this directory contains mex.pl, which is a Perl script used by mex.bat.

<matlab>\bin\win32\mexopts

The <matlab>\bin\win32\mexopts directory contains the preconfigured options files that the mex script uses with particular compilers. See Table 1-2, Options Files, for a complete list of the options files.

<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.


  Additional Information Examples