Main Content

matClose (C and Fortran)

Close MAT-file

C Syntax

#include "mat.h" int matClose(MATFile *mfp);

Fortran Syntax

#include "mat.h" integer*4 matClose(mfp) mwPointer mfp

Arguments

mfp

Pointer to MAT-file information

Returns

EOFin C (-1in Fortran) for a write error, and0if successful.

Description

matClosecloses the MAT-file associated withmfp.

Examples

See these examples inmatlabroot/extern/examples/eng_mat:

See Also

matOpen

Version History

Introduced before R2006a