MATLAB BUILDER JA 2 Guía de usuario Pagina 140

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 139
4 Using MWArra y Classes
To construct an uninitialized real or complex numeric array, use the following:
newInstance(int[] dims, MWClassID classid, MWComplexity cmplx)
To construct and initialize a real numeric array, use
newInstance(int[] dims, Object rData, MWClassID classid)
To construct and initialize a complex numeric array, use
newInstance(int[] dims, Object rData, Object iData,
MWClassID classid)
Input Parameters
dims
Array of nonnegative dimension sizes
classId
MWClassID
representing the MATLAB type of the array
rData
Datatoinitializetherealpartofthearray.YoumustformattherData array
in column-wise order.
iData
Data to initialize the im aginary part of the a rray. You must format the iData
array in column-wise order.
Valid types for
realData and imagData are as follows:
double[]
float[]
long[]
int[]
4-64
Vista de pagina 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 291 292

Comentarios a estos manuales

Sin comentarios