Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

EOF in C (-1 in Fortran) for a write error, and 0 if successful.

Description

matClose closes the MAT-file associated with mfp.

Examples

See the following examples in matlabroot/extern/examples/eng_mat.

See Also

matOpen

Introduced before R2006a

Was this topic helpful?