MATLAB Compiler Previous page   Next Page

mwArray(int num_rows, int num_cols, int num_fields, const char** fieldnames)

Construct 2D MATLAB structure matrix of specified dimensions and fieldnames.

C++ syntax

Arguments

num_rows.   Number of rows in the struct 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 fieldnames.

Return value

None

Description

Use this constructor to create a matrix of type mxSTRUCT_CLASS, with the specified fieldnames. All elements are initialized with empty cells.


Previous page  mwArray(int num_strings, const char** str) mwArray(int num_dims, const int* dims, int num_fields, const char** fieldnames) Next page

© 1994-2005 The MathWorks, Inc.