matClose (C and Fortran) - Close MAT-file
C Syntax
#include "mat.h"
int matClose(MATFile *mfp);
Fortran Syntax
integer*4 matClose(mfp)
mwPointer mfp
Arguments
- mfp
Pointer to MAT-file information
Returns
EOF in C (-1 in Fortran)
for a write error, and 0 if successful.
Description
matClose closes the MAT-file associated
with mfp.
C Examples
See matcreat.c and matdgns.c
in the matlabroot/extern/examples/eng_mat folder
for sample programs that illustrate how to use the MAT-file routines
in a
C program.
Fortran Examples
See matdemo1.F and matdemo2.F
in the matlabroot/extern/examples/eng_mat folder
for sample programs that illustrate how to use the MAT-file routines
in a
Fortran
program.
 | engSetVisible (C) | | matDeleteVariable (C and Fortran) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit