User`s guide
Using Class Methods
System.out.println("A = " + A.toString());
When run, the example displays this output:
(2,1) 50
(2,2) 60
(1,5) 40
(2,5) 250
dispose. MWNumericArray inherits this m ethod from the MWArray class.
disposeArray.
MWNumericArray inherits this method from the MWArray
class.
Methods to Return Information About an M WNumericArray
Use these methods to return information about an object of class
MWNumericArray.
Method Description
“classID” on page 4-72 Returns the MATLAB type of this array.
“complexity” on pag e 4-72 Returns the complexity of this array.
“getDimensions” on page
4-72
Returns an array containing the size of each
dimension of this array.
“isEmpty” on page 4-72 Tests whe ther the array has no elements.
“isFinite” on page 4-72 Tests for finiteness in a machine-independent
manner.
“isInf” on page 4-73 Tests for infinity in a m achine-in dependent
manner.
“isNaN” on page 4-74
Tests for
NaN (not a number) in a
machine-independent manner.
“numberOfDimensions” on
page 4-75
Returns the number of dimensions of this
array.
“numberOfElements” on
page 4-75
Returns the total number of elements in this
array.
4-71