MATLAB: How to make matlab plot data points taken every fifteen second

lightplotscript

I am trying to plot data points collected from a light measurement toll. The problem is that data was taken once every fifteen second and the script I have made can only measure in minutes or seconds. Making the the plot either four times longer or fifteen times shorter than it needs to be. Is there a way to make plot it in such a way as to put one data point every fifteen second or four points per minute? (Ljus means Light in Swedish).
Ljus;
Dag;
Minut;
Timme;
Sekund;
Mnad;
VarName6;
x = Ljus;
ts1 = timeseries(x,1:39270);
ts1.TimeInfo.Units = 'seconds';
ts1.TimeInfo.StartDate = '29-Aug-2016'; % Set start date.
ts1.TimeInfo.Format = 'mmm dd, yy'; % Set format for display on x-axis.
%ts1.Time = ts1.Time - ts1.Time(1); % Express time relative to the start date.
plot(ts1)

Best Answer

What about considering the real time steps during the creation of the timeseries object?
ts1 = timeseries(x, 0:15:((39270-1)*15))
I've started at 0 instead of 1, because the StartDate has been given.