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
Comments to this Manuals