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.

matGetFp (C)

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. Standard C library routines, like ferror and feof, use file handle to investigate errors.

Introduced before R2006a

Was this topic helpful?