This property converts real and imaginary doubles to Variant array of doubles.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Loads the complex math lib

DSSCmathLib = DSSObject.CmathLib;

% Converts values 1, 2 into array [1, 2] to make them compatible with other commands

myCmplxArray = DSSCmathLib.cmplx(1,2);