MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 140

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag