User`s guide
Using Class Methods
equals. MWNumericArray inherits this m ethod from the MWArray class.
hashcode.
MWNumericArray inherits this method from the MWArray class.
sharedCopy. This method creates and returns a shared copy of the
MWNumericArray object. The shared copy points to the underlying original
MATLAB array. Any changes made to the copy are reflected in the original.
The
sharedCopy method of MWNumericArray overrides the sharedCopy
method of class MWArray.
The prototype for the
sharedCopy m ethod is as follows:
public Object sharedCopy()
Input Parameters
None
Example — Making a Shared Copy of a Numeric Array Object
Create a shared copy of MWArray object A:
Object S = A.sharedCopy();
System.out.println("Shared copy of matrix A is:");
System.out.println(S.toString());
When run, the example displays this output:
Shared copy of matrix A is:
123456
7 8 9101112
13 14 15 16 17 18
toString. MWNumericArray inherits this method from the MWArray class.
4-89