User`s guide

void MakeComplex()
Purpose Convert real numeric array to complex
C++
Syntax
#include "mclcppclass. h"
double rdata[4] = {1.0, 2.0, 3.0, 4.0};
double idata[4] = {10.0, 20.0, 30.0, 40.0};
mwArray a(2, 2, mxDOUBLE_CLASS);
a.SetData(rdata, 4);
a.MakeComplex();
a.Imag().SetData(idata, 4);
Arguments None
Return
Value
None
Description Use this method to convert a numeric array that has been previously
allocated as
real to complex . If the underlying array is of a nonnumeric
type, an
mwException is thrown.
C-68