matGetVariableInfo (C and Fortran)
Array header information only
C Syntax
#include "mat.h" mxArray *matGetVariableInfo(MATFile *mfp, const char *name);
Fortran Syntax
# include“mat.h mwPointer matGetVariableInfo (mfp, name) mwPointer mfp character*(*) name
Arguments
-
mfp
-
Pointer to MAT-file information
-
name
-
Name of
mxArray
to get from MAT-file
Returns
Pointer to a newly allocatedmxArray
structure representing header information for themxArray
named byname
from the MAT-file pointed to bymfp
.
matGetVariableInfo
returnsNULL
in C (0
in Fortran) if the attempt to return header information for themxArray
named byname
fails.
Description
matGetVariableInfo
loads only the array header information, including everything except公关
,pi
,ir
, andjc
. It recursively creates the cells and structures through their leaf elements, but does not include公关
,pi
,ir
, andjc
.
If公关
,pi
,ir
, andjc
are nonzero values when loaded withmatGetVariable
,matGetVariableInfo
sets them to-1
instead.These headers are for informational use only.Neverpass this data back to the MATLAB®workspace or save it to MAT-files.
UsemxDestroyArray
to destroy themxArray
created by this routine when you are finished with it.