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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 117
4 Using MWArra y Classes
When run, the example displays this output:
Class of A is int32
getDimensions. This method returns a one-dimensional int array
containing the size of each dimension of the
MWArray object.
The prototype for the
getDimensions method is a s follows:
public int[] getDimensions()
Input Parameters
None
Example Getting Array Dimensions of an MWArray
int[] dimA = A.getDimensions();
System.out.println("Dimensions of A are " +
dimA[0] + " x " + dimA[1]);
When run, the example displays this output:
Dimensions of A are 3 x 6
isEmpty. This method returns true if the array object contains n o elements,
and
false otherwise.
The prototype for the
isEmpty method is as fo llows:
public boolean isEmpty()
Input Parameters
None
4-42
Przeglądanie stron 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag