MATLAB BUILDER JA 2 User's Guide Page 211

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 210
Using Class Methods
Input Parameters
None
Example Making a Shared Copy of a Structure Array Object
Create an MWStructArray object and then a shared copy of that object:
int[] sdims = {1, 2};
String[] sfields = {"f1", "f2", "f3"};
MWStructArray S = new MWStructArray(sdims, sfields);
Object C = S.sharedCopy();
System.out.println("Shared copy of structure S is:");
System.out.println(C.toString());
When run, the example displays this output:
Shared copy of structure S is:
1x2 struct array with fields:
f1
f2
f3
toString. MWStructArray inherits this m ethod from the MWArray class.
Using MWCellArray
This section cov ers the following topics:
“Constructing an MWCellArray” on page 4-136
“Methods to Destroy an M WC ellArray” on page 4-137
“Methods to Return Information About an MWCellArray” on page 4-138
“Methods to Get and Set Data in the MWCellArray” on page 4-140
“Methods to Copy, Convert, and Compare MWCellArrays” on page 4-147
4-135
Page view 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 291 292

Comments to this Manuals

No comments