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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 168
Using Class Methods
MWLogicalArray()
Constructing an Initialized Logical Scalar or Array. Use this constructor
syntax to create a
MWLogicalArray scalar or array that represents the
primitive Java type
javatype:
MWLogicalArray(javatype array)
The value of array is set to true if the argument is nonzero, a nd false
otherwise.
The type
javatype canbeanyofthefollowing:
double
float
long
int
short
byte
boolean
Object
Example Constructing an Initialized Logical Array Object
boolean[][] Adata = {{true, false, false},
{false, true, false}};
MWLogicalArray A = new MWLogicalArray(Adata);
Methods to Create and Destroy an M WLogicalArray
In addition to the MWLogicalArray constructor, you can use the newInstance
and newSparse methods to construct a logical array. These tw o methods offer
better performance than using the class constructor. To destroy the arrays,
use either
dispose or disposeArray.
4-93
Przeglądanie stron 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag