Xscale
(read/write)
This property sets/gets the Factor to scale X values from original curve.
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]';
% get the X values
myXValues = DSSXY.Xarray;
% get the factor to scale X
myXScaleF = DSSXY.Xscale;