User`s guide
Using Class Methods
Method Description
“getDimensions” on page
4-100
Returns an array containing the size of each
dimension of this a rray.
“isEmpty” on p age 4-100 Tests w hether the array has no elements.
“numberOfDimensions” on
page 4-100
Returns the number of dimensions of this
array.
“numberOfElements” on
page 4-100
Returns the total number of elements in this
array.
classID. This method returns the MATLAB type of the MWLogicalArray
object. The classID method of MWLogicalArray overrides the classID
method of class MWArray.
The prototype for the
classID method is
public MWClassID classID()
classID
returns a field defined by the MWClassID class. For an
MWLogicalArray, classID returns the value MWClassID.LOGICAL.
Input Parameters
None
Example — Getting the Class ID for a Logical Array Object
Return the class ID for MWLogicalArray object Adata:
boolean[][] Adata = {{true, false, false},
{false, true, false}};
MWLogicalArray A = new MWLogicalArray(Adata);
System.out.println("Class of A is " + A.classID());
4-99