| MATLAB Compiler | ![]() |
int NumberOfFields() const
Return number of fields in struct array.
C++ syntax
#include "mclcppclass.h" const char* fields[] = {"a", "b", "c"}; mwArray a(2, 2, 3, fields); int n = a.NumberOfFields(); // Should return 3
Arguments
Return value
Number of fields in the array.
Description
Use this method to determine the number of fields in a struct array. If the underlying array is not of type struct, zero is returned.
| int NumberOfDimensions() const | mwString GetFieldName(int index) | ![]() |
© 1994-2005 The MathWorks, Inc.