User`s guide

4 Using MWArra y Classes
When run, the example displays this output:
Class of A is logical
getDimensions.
MWLogicalArray inherits this m ethod from the MWArray
class.
isEmpty.
MWLogicalArray inherits this method from the MWArray class.
numberOfDimensions.
MWLogicalArray inherits this method from the
MWArray class.
numberOfElem ents.
MWLogicalArray inherits this method from the
MWArray class.
Methods to Get and Set Data in an MWLogicalArray
Use these methods to get and set values in an object of class MWLogicalArray.
Method Description
“get” on page
4-100
Returns the element at the specified offset as an Object.
“getData” on
page 4-100
Returns a one-dimensional array containing a copy of
the data in the underlying MATLAB array.
“getBoolean” on
page 4-101
Returns the boolean at the specified one-based offset.
“set” on page
4-102
Replaces the element at the specified one-based offse t in
this array with the specified element.
“toArray” on
page 4-104
Returns an array containing a copy of the data in the
underlying MATLAB array. The returned array has the
same dimensionality as the MATLAB array.
get. MWLogicalArray inherits this method from the MWArray class.
getData.
MWLogicalArray inherits this method from the MWArray class.
4-100