User`s guide

Guidelines for Working with MWArray Classes
Method Usage
sharedCopy()
Creates a new MWArray instance
that represents a shared copy of
the underlying MATLAB a rray.
A shared copy points to the same
underlying MATLAB array as the
original. Changing the data in a shared
copy also changes the original array.
toArray()
Returns an array containing a copy of
the data in the underlying M ATLAB
array as an array of Java types.
The returned array has the same
dimensionality as the underlying
MATLAB array. The different kinds of
arrays are returned as follows:
If the underlying MATLAB array is
complex, the real part is returned.
If the underlying array is sparse, a full
representation of the array is returned.
If the underlying array is a cell or
struct array,
toArray is recursively
called on each element.
Constructing Numeric Arrays
The MWNumericArray classprovidesaJavainterfacetoanumericMATLAB
array. A n instance of this class can store a reference to a MATLAB array of
type
double, single, int8, uint8, int16, int32, uint32, int64,anduint64.
MWNumericArrays can be real or complex, dense or s parse (sparse is supported
for
double type only).
Overview of Constructors and Data Types
ThefollowingtablelistsMWNumericArray class constructors.
4-7