| MATLAB Compiler | ![]() |
void MakeComplex()
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
Return value
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.
| mwArray ColumnIndex() const | mwArray Get(int num_indices, ...) | ![]() |
© 1994-2005 The MathWorks, Inc.