(read/write)


This property divides two complex number: (a1, b1)/(a2, b2). Returns variant array of two doubles representing complex result.


Example


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');

                    return

end;

DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Loads the complex math lib

DSSCmathLib = DSSObject.CmathLib;

% Divides 1 + 2i / 2 + 3i

myResult = DSSCmathLib.cdiv(1,2,2,3);

% Converts the array into a complex number

myCmplx = myResult(1) + i*myResult(2);