| MATLAB Compiler | ![]() |
mwArray(int num_dims, const int* dims, int num_fields, const char** fieldnames)
Construct n-dimensional MATLAB structure array of specified dimensions and fieldnames.
C++ syntax
#include "mclcppclass.h" const char* fields[] = {"a", "b", "c"}; int dims[3] = {2, 3, 4} mwArray a(3, dims, 3, fields);
Arguments
num_dims. Size of the dims array
dims. Dimensions of the struct array
num_fields. Number of fields in the struct array
fieldnames. Array of NULL-terminated strings representing the fieldnames
Return value
Description
Use this constructor to create an n-dimensional array of type mxSTRUCT_CLASS, with the specified fieldnames. All elements are initialized with empty cells.
| mwArray(int num_rows, int num_cols, int num_fields, const char** fieldnames) | mwArray(const mwArray& arr) | ![]() |
© 1994-2005 The MathWorks, Inc.