ploting time series without adding days
2 views (last 30 days)
Show older comments
hello, I am writing a code that read data and plot it against time for 7 days. the problem is the daily count is not working
load phase.txt;
y1= phase(:,1);
ts1 = timeseries(y1,1:505);
ts1.TimeInfo.Units = 'minutes';
ts1.TimeInfo.StartDate='10-3-2014 13:19:44'; % Set start date.
ts1.TimeInfo.Format = 'yy/mm/dd HH:MM:SS'; % Set format for display on x-axis.
ts1.Time=ts1.Time-ts1.Time(1); % Express time relative to the start date.
ts2 = setuniformtime(ts1,'Interval',20)
plot(ts2)
0 Comments
Answers (0)
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!