| MATLAB Compiler | ![]() |
mwArray(<type> re, <type> im)
Construct complex scalar array of type of the input arguments and initialize real and imaginary parts of data with the input argument's values.
C++ syntax
#include "mclcppclass.h" double re = 5.0; double im = 10.0; mwArray a(re, im);// Creates a 1X1 complex array with value 5+10i
Arguments
re. Scalar value to initialize real part with
im. Scalar value to initialize imaginary part with
Return value
Description
Use this constructor to create a complex scalar array. The first input argument initializes the real part and the second argument initializes the imaginary part. <type> can be any of the following: mxDouble, mxSingle, mxInt8, mxUint8, mxInt16, mxUint16, mxInt32, mxUint32, mxInt64, or mxUint64. The scalar array is created with the type of the input arguments.
| mwArray(<type> re) | mwArray Clone() const | ![]() |
© 1994-2005 The MathWorks, Inc.