function X = XFromGridIndices(this, Indices)
% Grid points include both endpoints. Indices are origin 1.
%

%   Copyright 2016-2022 The MathWorks, Inc.

GridRes = this.PrivOptions.NumGridDivisions;
LB = this.PrivOptions.VarSpec.LBTrans;
UB = this.PrivOptions.VarSpec.UBTrans;
X = (Indices-1)./(GridRes-1) .* (UB-LB) + LB;
end
