Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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