| MATLAB Application Program Interface | Search  Help Desk |
| matGetArrayHeader | Examples |
Load array header information only
#include "mat.h" mxArray *matGetArrayHeader(MATFile *mfp, const char *name);
mfp
name
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 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.