matGetFp

Purpose

Get file pointer to a MAT-file.

C Synopsis

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

Fortran Synopsis

integer*4 function matGetFp(fp)
integer*4 fp

Arguments

fp
MAT-file handle

Description

matGetFp returns the C file handle to the MAT-file with handle fp. This can be useful for using standard C library routines like ferror() and feof() to investigate error situations.

It is necessary to call matGetFp each time you use a FILE handle with some other function because the FILE handle in use by the MAT-file routines changes during the course of matPutMatrix calls if a Matrix is being replaced.

(c) Copyright 1994 by The MathWorks, Inc.