User`s guide

Using Class Methods
numberOfDimensions. MWNumericArray inherits this method from the
MWArray class.
numberOfElem ents.
MWNumericArray inherits this method from the
MWArray class.
Methods to Get and Set the Real Parts of an MWNumericArray
Use these m ethods to get and set real values in an object of class
MWNumericArray.
Method Description
“get” on page
4-76
Returns the element at the specified offset as an Object.
“getData” on
page 4-76
Returns a one-dimensional array containing a copy of the
data in the u nderlying MATLAB array.
“getDouble”
on page 4-76
Returns the real part at the specified offset as a double
value.
“getFloat” on
page 4-77
Returns the real part at the specified offset as a float
value.
“getLong” on
page 4-77
Returns the real part at the specified offset as a long value.
“getInt” on
page 4-77
Returns the real part at the specified offset as an int va lue.
“getShort” on
page 4-77
Returns the real part at the specified offset as a short
value.
“getByte” on
page 4-78
Returns the real part at the specified offset as a byte value.
“set” on p age
4-79
Replacestherealpartatthespecifiedoffsetwiththe
specified v alue.
“toArray” on
page 4-79
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.
4-75