MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 175

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 174
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
Przeglądanie stron 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag