(read only)


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


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';

DSSSolution = DSSCircuit.Solution;


% Solve the model

DSSSolution.Solve(); 

% 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)];

end;

% gets the column names of the B2N matrix

myB2NColN = DSSSolution.IncMatrixCols;

% gets the row names of the B2N matrix

myB2NRowN = DSSSolution.IncMatrixRows;