| MATLAB Application Program Interface | Search  Help Desk |
| matClose | Examples |
C Syntax
#include "mat.h" int matClose(MATFile *mfp);
Arguments
mfp
Description
matClose closes the MAT-file associated with mfp. It returns EOF for a write error, and zero if successful.
Example
Seematcreat.c and matdgns.c in the eng_mat subdirectory of the examples directory for sample programs that illustrate how to use the MATLAB MAT-file routines in a C program.