ctopolardeg
(read/write)
This property converts complex number to magnitude and angle, degrees. Returns variant array of two doubles.
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;
% Converts complex 1 + 2i into polar
myResult = DSSCmathLib.ctopolardeg(1,2);
disp(['magnitude= ',num2str(myResult(1)),' Angle= ',num2str(myResult(1))]);