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