User`s guide

Guidelines for Working with MWArray Classes
Method Usage
columnIndex()
Returns the column index (second
dimension) of each element in the array.
Call this method to get an a rray of
column indices for the nonzero elements
of a sparse array.
dispose()
Frees the native resources associated
with the underlying MATLAB array.
disposeArray(Object)
Calls dispose on all MWArray instances
contained in the input.
get(int)
Returns the elements at the specified
one-based offset.
get(int[])
Returns the elements at the specified
one-based index array.
getData()
Returns a one-dimensional array
containing a copy of the data in the
underlying MATLAB array as an array of
Java types. The elements in the returned
array are arranged in column-wise order.
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, an
array containing the non zero elements
is returned.
If the underlying array is a cell or
struct array,
toArray is recursively
called on each element.
getDimensions()
Returns an array of dimensions for the
array.
isEmpty()
Testsifthearrayisempty.
isSparse()
Tests if the array is sparse.
4-5