x
(read/write)
This property sets/gets the X value or get interpolated value after setting Y.
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';
DSSXY = DSSCircuit.XYCurves;
% activate the first XY curve of the list
i = DSSXY.First;
% define new XYCurve
DSSText.Command = 'New XYCurve.SmartInv0 npts=7 xarray=[0.4 0.86 1 1 1 1.14 1.6] yarray=[1 1 0 0 0 -1 -1]';
% set value Y in 1
DSSXY.y = 1;
% get the X value corresponding to Y
myX = DSSXY.x;