External Interfaces Previous page   Next Page

Finding Associated Files

Table 1-3: MAT-Function Subdirectories  
Platform
Contents
Directories
Windows
Include Files
<matlab>\extern\include
Libraries
<matlab>\bin\win32
Examples
<matlab>\extern\examples/eng_mat
UNIX
Include Files
<matlab>/extern/include
Libraries
<matlab>/extern/lib/$arch
Examples
<matlab>/extern/examples/eng_mat

Include Files

The include directory holds header files containing function declarations with prototypes for the routines that you can access in the API Library. These files are the same for both Windows and UNIX. Included in the subdirectory are:

Libraries

The subdirectory that contains shared (dynamically linkable) libraries for linking your programs is platform dependent.

Shared Libraries on Windows.   The bin subdirectory contains the shared libraries for linking your programs:

Shared Libraries on UNIX.   The extern/lib/$arch subdirectory, where $arch is your machine's architecture, contains the shared libraries for linking your programs. For example, on sol2, the subdirectory is extern/lib/sol2:

Example Files

The examples/eng_mat subdirectory contains C and Fortran source code for a number of example files that demonstrate how to use the MAT-file routines. The source code files are the same for both Windows and UNIX.

Table 1-4: C and Fortran Examples  
Library
Description
matcreat.c
Example C program that demonstrates how to use the library routines to create a MAT-file that can be loaded into MATLAB
matdgns.c
Example C program that demonstrates how to use the library routines to read and diagnose a MAT-file
matdemo1.f
Example Fortran program that demonstrates how to call the MATLAB MAT-file functions from a Fortran program
matdemo2.f
Example Fortran program that demonstrates how to use the library routines to read in the MAT-file created by matdemo1.f and describe its contents

For additional information about the MATLAB API files and directories, see Additional Information.


Previous page  Writing Character Data Examples of MAT-Files Next page

© 1994-2005 The MathWorks, Inc.