This property sets/gets the nodal Capacitance matrix, lower triangle, nf per unit length for the active line code. Order of the matrix is the number of phases. May be used to specify the shunt capacitance of any line configuration. Using any of Rmatrix, Xmatrix, Cmatrix forces program to use the matrix values for line impedance definition.  For balanced line models, you may use the standard symmetrical component data definition instead.


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

DSSLineCodes = DSSCircuit.LinesCodes;

% activates the first line code on the list


% Gets Cmatrix for the active line code

myCmatrix = DSSLineCodes.Cmatrix;

myCmatrix = reshape(myCmatrix,[DSSLineCodes.phases,DSSLineCodes.phases]);