MATLAB BUILDER JA 2 Guía de usuario Pagina 169

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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
Vista de pagina 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 291 292

Comentarios a estos manuales

Sin comentarios