(read only)


This property returns the system Y matrix as an array of doubles representing complex number pairs (dense format- includes 0s - after a solution has been performed)


Example


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');

                    return

end;

DSSText = DSSObject.Text;

DSSSolution = DSSCircuit.Solution;

DSSSolution.Solve();

% Gets the System Y

mySysY = DSSCircuit.SystemY;

myNodeList = DSSCircuit.AllNodeNames;

YSysSize = size(myNodeList);

% Formats Y matrix data as a complex dense matrix

myYMat = [];

myIdx = 1;

for a = 1:YSysSize(1),

    myRow = [];

    for b = 1:YSysSize(1),

        myRow = [myRow,(mySysY(myIdx) + i*mySysY(myIdx + 1))];

        myIdx = myIdx + 2;

    end;

    myYMat = [myYMat;myRow];

end;