MATLAB BUILDER JA 2 Betriebsanweisung Seite 169

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare