External Interfaces/API Reference |
Get directory of mxArray
s
in a MAT-file
Fortran Syntax
Arguments
mfp
Pointer to MAT-file information.
num
Address of the variable to contain the number of mxArray
s in the MAT-file.
Description
This routine allows you to get a list of the names of the mxArray
s
contained within a MAT-file.
matGetDir
returns a pointer to an internal array containing pointers to the names of the mxArray
s
in the MAT-file pointed to by mfp
. The length of the internal array (number of mxArray
s
in the MAT-file) is placed into num
. The internal array is allocated using a single mxCalloc
. Use mxFree
to free the array when you are finished with it.
matGetDir
returns 0 and sets num
to a negative number if it fails. If num
is zero, mfp
contains no mxArrays
.
MATLAB variable names can be up to length 32.
Example
See matdemo2.f
in the eng_mat
subdirectory of the examples
directory for a sample program that illustrates how to use this MAT-file routine in a Fortran program.
matGetArrayHeader (Obsolete) | matGetFull (Obsolete) |