MATLAB BUILDER JA 2 Guida Utente Pagina 169

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 292
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 291 292

Commenti su questo manuale

Nessun commento