This property returns the angle, in degrees, of a complex number specified as two doubles: Realpart and imagpart.


% 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;

% Calculates the phase angle for complex number 1 + 2i

myAng = DSSCmathLib.cdang(1,2)