User`s guide

mwArray(mwSize num_rows, mwSize num_cols, int
num_fields, const char** fieldnames)
Purpose Construct 2-D MATLAB structure matrix of specified dimensions and
field names
C++
Syntax
#include "mclcppclass. h"
const char* fields[] = {"a", "b", "c"};
mwArray a(2, 2, 3, fields);
Arguments num_rows
Number of rows in the str uct matrix.
num_cols
Number of columns in the struct matrix.
num_fields
Number of fields in the struct matrix.
fieldnames
Array of NULL-terminated strings representing the field names.
Return
Value
None
Description Use this constructor to create a m atrix of type mxSTRUCT_CLASS,with
the specified field n ames. All elements are initialized with empty cells.
C-40