cdang
(read/write)
This property returns the angle, in degrees, of a complex number specified as two doubles: Realpart and imagpart.
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;
% Calculates the phase angle for complex number 1 + 2i
myAng = DSSCmathLib.cdang(1,2)