cmul
(read/write)
This property multiplies two complex numbers: (a1, b1) * (a2, b2). Returns result as a 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;
% Multiplies 1 + 2i by 2 + 3i
myResult = DSSCmathLib.cmul(1,2,2,3);
% Converts the array into a complex number
myCmplx = myResult(1) + i*myResult(2);