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 eng_mat subdirectory of the examples directory for sample programs that illustrate how to use the MATLAB® MAT-file routines in a C program.

Fortran Examples

See matdemo1.F and matdemo2.F in the eng_mat subdirectory of the examples directory for sample programs that illustrate how to use this MAT-file routine in a Fortran program.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS