External Interfaces/API Reference    
matGetVariableInfo

Load array header information only

C Syntax

Arguments

mfp
   Pointer to MAT-file information.

name
   Name of mxArray.

Description

matGetVariableInfo loads only the array header information, including everything except pr, pi, ir, and jc. It recursively creates the cells and structures through their leaf elements, but does not include pr, pi, ir, and jc.

If pr, pi, ir, and jc are set to nonNULL when loaded with matGetVariable, then matGetVariableInfo 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.

Examples

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.


  matGetVariable matOpen