(read only)

This property returns the an array of strings with the name of the rows of the B2N matrix.


% Create DSS object

DSSObject = actxserver('OpenDSSEngine.DSS')

if ~DSSObject.Start(0),

                    disp('Unable to start openDSS');



DSSText = DSSObject.Text;

DSSCircuit = DSSObject.ActiveCircuit;

% Compile a model        

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

DSSSolution = DSSCircuit.Solution;

% Solve the model


% calculate the B2N matrix, requires an Energy meter at the feeder head

DSSText.Command = 'CalcIncMatrix_O';

% gets the B2N matrix as vector

myB2NV = DSSSolution.IncMatrix;

mySize = size(myB2NV);

% gets the number of rows

myB2N = []

for i = 1:3:(mySize(2) - 1),

    myB2N = [myB2N;myB2NV(i:i+2)];


% gets the column names of the B2N matrix

myB2NColN = DSSSolution.IncMatrixCols;

% gets the row names of the B2N matrix

myB2NRowN = DSSSolution.IncMatrixRows;