MATLAB BUILDER JA 2 Guia do Utilizador Página 83

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 292
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 82
Guidelines for Working with MWArray Classes
Method Usage
sharedCopy()
Creates a new MWArray instance
that represents a shared copy of
the underlying MATLAB a rray.
A shared copy points to the same
underlying MATLAB array as the
original. Changing the data in a shared
copy also changes the original array.
toArray()
Returns an array containing a copy of
the data in the underlying M ATLAB
array as an array of Java types.
The returned array has the same
dimensionality as the underlying
MATLAB array. The different kinds of
arrays are returned as follows:
If the underlying MATLAB array is
complex, the real part is returned.
If the underlying array is sparse, a full
representation of the array is returned.
If the underlying array is a cell or
struct array,
toArray is recursively
called on each element.
Constructing Numeric Arrays
The MWNumericArray classprovidesaJavainterfacetoanumericMATLAB
array. A n instance of this class can store a reference to a MATLAB array of
type
double, single, int8, uint8, int16, int32, uint32, int64,anduint64.
MWNumericArrays can be real or complex, dense or s parse (sparse is supported
for
double type only).
Overview of Constructors and Data Types
ThefollowingtablelistsMWNumericArray class constructors.
4-7
Vista de página 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 291 292

Comentários a estes Manuais

Sem comentários