User`s manual

Using MAT-Files
6-7
The MAT-file library contains routines for reading and writing MAT-files. They
all begin with the three-letter prefix
mat. These tables list all the available
MAT-functions and their purposes.
Table 6-1: C MAT-File Routines
MAT-Function Purpose
matOpen
Open a MAT-file
matClose
Close a MAT-file
matGetDir
Get a list of MATLAB arrays from a MAT-file
matGetFp
Get an ANSI C file pointer to a MAT-file
matGetArray
Read a MATLAB array from a MAT-file
matPutArray
Write a MATLAB array to a MAT-file
matGetNextArray
Read the next MATLAB array from a MAT-file
matDeleteArray
Remove a MATLAB array from a MAT-file
matPutArrayAsGlobal
Put a MATLAB array into a MAT-file such
that the
load command will place it into the
global workspace
matGetArrayHeader
Load a MATLAB array header from a MAT-file
(no data)
matGetNextArrayHeader
Load the next MATLAB array header from a
MAT-file (no data)
Table 6-2: Fortran MAT-File Routines
MAT-Function Purpose
matOpen
Open a MAT-file
matClose
Close a MAT-file