MATLAB BUILDER JA 2 Uživatelská příručka Strana 140

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 292
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 291 292

Komentáře k této Příručce

Žádné komentáře