External Interfaces/API Reference | ![]() ![]() |
Load array header information only
C Syntax
#include "mat.h" mxArray *matGetArrayHeader(MATFile *mfp, const char *name);
Arguments
mfp
Pointer to MAT-file information.
name
mxArray
.
Description
matGetArrayHeader
loads only the array header information, including everything except pr
, pi
, ir
, and jc
. It recursively creates the cells/structures through their leaf elements, but does not include pr
, pi
, ir
, and jc
. If pr
, pi
, ir
, and jc
are set to non-NULL
when loaded with matGetArray
, matGetArrayHeader
sets them to -1 instead. These headers are for informational use only and should never be passed back to MATLAB or saved to MAT-files.
Example
See matcreat.c
and matdgns.c
in the eng_mat
subdirectory of the examples
directory for sample programs that illustrate how to use the MATLAB MAT-file routines in a C program.
![]() | matGetArray | matGetDir | ![]() |