Table of MAT-File Source Code Files
The matlabroot/extern/examples/eng_mat folder
contains C/C++ and Fortran source code for examples demonstrating how to use the MAT-file
routines. These examples create standalone programs. The source code is the same for both
Windows®, macOS, and Linux® systems.
To build a code example, first copy the file to a writable folder, such as
c:\work on your Windows path.
copyfile(fullfile(matlabroot,'extern','examples','eng_mat',...
'filename'), fullfile('c:','work'))where filename is the name of the
source code file.
For build information, see:
Example | Description |
|---|---|
| C program that demonstrates how to use the library routines to create a MAT-file that you can load into MATLAB®. |
| C++ version of the |
| C program that demonstrates how to use the library routines to read and diagnose a MAT-file. |
| Fortran program that demonstrates how to call the MATLAB MAT-file functions from a Fortran program. |
| Fortran program that demonstrates how to use the library
routines to read the MAT-file created by |
| C program based on |
| C program based on |
| C program based on |
For examples using the Matrix Library, see:
The
explore.cexample described in Using Data Types.