MATLAB® provides include and library files to write programs
to read and write MAT-files. The following table lists the path names
to these files. The term
to the root folder of your MATLAB installation. The term
a unique string identifying the platform.
MAT-File API Folders
header files containing function declarations with prototypes for the routines that you can
access in the API Library. These files are the same for Windows, macOS, and Linux systems. The folder contains:
The name of the libraries folder, which contains the shared (dynamically linkable) libraries, is platform-dependent.
bin folder contains the run-time version
of the shared libraries:
libmat.dll library of MAT-file
routines (C/C++ and Fortran)
libmx.dll library of array
access and creation routines
bin/ folder, where
arch is the value returned by the
computer('arch') command, contains the shared libraries.
For example, on Apple
macOS 64-bit systems, the folder is
libmat.dylib library of MAT-file routines (C/C++ and
libmx.dylib library of array access and creation
extern/examples/eng_mat folder contains C/C++ and Fortran source code
for examples demonstrating how to use the MAT-file routines.