(read only)


This property returns an array of doubles (complex) containing the complete 012 Zsc matrix for the active bus.


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;

% Compile a model        

DSSText.Command = 'Compile C:\myPath\myModel.dss';

DSSActiveBus = DSSCircuit.ActiveBus;


DSSText.Command = 'Solve mode=fault';

% Sets bus "myBus" as the active Bus

DSSCircuit.SetActiveBus('myBus')

myZSC012 = DSSActiveBus.ZSC012Matrix;

mySize = DSSActiveBus.NumNodes;

myCMatrix = [];

%Recreate the matrix

for i=1:mySize,

myRow = [];

            %Creates the row

            for k=1:2:(mySize * 2),

              myRow = [myRow, complex(myZSC012(k),myZSC012(k + 1))];

           end;

myCMatrix = [myCMatrix; myRow];

end;