User`s guide

4 Using MWArra y Classes
Java Interfaces Implemented by MWArray
Interface
Method in MWArray
Base Class
Description of
Method
Cloneable clone
(public method)
Produces a new
MWArray object that
contains a deep copy
of the un derlying
MATLAB array.
Comparable compareTo
(public method)
Allows comparisons of
MWArraysfororder.
Internally, this
method does a
byte-wise compa rison
of the native buffer.
Therefore,
MWArray
has a natural ordering
that is based on a
combination of the
array’s MATLAB type,
size, and shape.
Serializable writeObject
readObject
(private methods)
Provides serialization
support is as required
by the
Serializable
interface.
Additional MWArray Methods
MWArray
MWArray
also implements several base class methods that are common to all
MWArray subclasses. These methods are shown in the following table.
Method Usage
MWArray()
Constructs an empty array.
classID()
Returns the MATLAB type of the array.
4-4