function tsStartTime = frestTimeSeriesCustomStartTime(ts,startTime)
% Utilitiy function to generate timeseries at a particular start time
%
%   Copyright 2022 The MathWorks, Inc.

Ts = ts.Time(2) - ts.Time(1);
vectorZero = 0:Ts:startTime-Ts;
tsZero = timeseries(zeros(length(vectorZero),1),vectorZero);
set(ts,'Time',ts.Time+startTime);
tsStartTime = append(tsZero,ts);

end