Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

matGetFp (C) - Get file pointer to MAT-file

C Syntax

#include "mat.h"
FILE *matGetFp(MATFile *mfp);

Arguments

mfp

Pointer to MAT-file information

Returns

C file handle to the MAT-file with handle mfp. Returns NULL if mfp is a handle to a MAT-file in HDF5-based format.

Description

Use matGetFp to obtain a C file handle to a MAT-file. This can be useful for using standard C library routines like ferror and feof to investigate error situations.

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.

  


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