MATLAB BUILDER JA 2 User's Guide Page 225

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 224
Using Class Methods
public Object sharedCopy()
Input Parameters
None
Example Making a Shared Copy of a Cell Array Object
Create an MWCellArray object and then a shared copy of that object:
int[] cdims = {1, 3};
MWCellArray C = new MWCellArray(cdims);
Object X = C.sharedCopy();
System.out.println("Shared copy of cell array C is:");
System.out.println(X.toString());
When run, the example displays this output:
Shared copy of cell array C is:
[] [] []
toString. MWCellArray inherits this method from the MWArray class.
Using MWClassID
The MWClassID class enumerates all MATLAB array types. This class
contains no public constructors. A set of public static
MWClassID instances is
provided, o ne for each MATLAB array type.
MWClassID extends class java.lang.Object.
MWClassID implements inte rface java.io.Serializable.
Fields of MWClassID
CELL. CELL represents MATLAB array type cell.
4-149
Page view 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 291 292

Comments to this Manuals

No comments