MATLAB BUILDER JA 2 User's Guide Page 195

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 194
Using Class Methods
To construct an MWStructArray object with the specified dimensions and
field n ames, use
MWStructArray(int[] dims, java.lang.String[] fieldnames)
To construct an MWStructArray object with the specified number of rows
and columns, and field names, use
MWStructArray(int rows, int cols, java.lang.String[] fieldnames)
Input Parameters
dims
Array of dimension sizes. Each dimens ion size must be nonnegative.
fieldnames
Array of field names
rows
Number of rows in the array. This number must be nonnegative.
cols
Number of columns in the array. This number must be nonnegative.
Example Constructing a Structure Arr ay Object
This first example creates a 0-by-0 MWStructArray object:
MWStructArray S = new MWStructArray();
System.out.println("Structure array S: " + S);
When run, the example displays this output:
Structure array S: []
4-119
Page view 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 291 292

Comments to this Manuals

No comments