| MATLAB Application Program Interface Reference | Help Desk |
matGetArrayHeader
Load array header information only
#include "mat.h" mxArray *matGetArrayHeader(MATFile *mfp, const char *name);
mfpPointer to MAT-file information.
name
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.
See matdemo.c in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use the MATLAB MAT-file routines in a C program.