User`s guide

4 Using MWArra y Classes
Using Class Methods
Use MWArray classes to construct data types as needed in y our Java code.
You can use the following classes to create objects that correspond to the
basic MATLAB data types:
Using MWArray
Using MWNumericArray
Using MWL ogicalA rray
Using MWCharArray
Using MWStructArray
Using MWCellArray
MWClassID
Using MWComplexity
Using MWArray
This section covers topics on MWArray:
“Constructing an MWA rray” on page 4-38
“Meth od s to Create and Des tro y an MWArray” on page 4-39
“Methods to Return Information About an MWArray” on page 4-40
“Methods to Get and Set Data in the MWArray” on page 4-44
“Methods to Copy, C onvert, and Compare MWArrays” on p age 4-49
“Methods to Use on Sparse MWArrays” on page 4-54
Constructing an MWArray
Use this constructor to create an empty two-dimensional MWArray object:
MWArray()
The type given to this object is MWClassID.UNKNOWN.
4-38