User`s guide
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