2-D structure array
#include "matrix.h" mxArray *mxCreateStructMatrix(mwSize m, mwSize n, int nfields, const char **fieldnames);
#include "fintrf.h" mwPointer mxCreateStructMatrix(m, n, nfields, fieldnames) mwSize m, n integer*4 nfields character*(*) fieldnames(nfields)
Number of rows; must be a positive integer.
Number of columns; must be a positive integer.
Number of fields in each element.
List of field names.
Each structure field name must begin with a letter and is case-sensitive.
The rest of the name can contain letters, numerals, and underscore
characters. To determine the maximum length of a field name, use the
Pointer to the created
if successful. If unsuccessful in a standalone (non-MEX file) application,
NULL in C (
0 in Fortran).
If unsuccessful in a MEX file, the MEX file terminates and returns
control to the MATLAB® prompt. The function is unsuccessful when
there is not enough free heap space to create the
almost identical. The only difference is that
create only two-dimensional
mxArray having two or more dimensions.
following examples in