How to display time series in HH:MM?

1 view (last 30 days)
Muhammad Yasirroni
Muhammad Yasirroni on 3 May 2019
I'm using MATLAB ONLINE.
My code is:
car20 = timeseries(demandVehicleAveraged(:,1),0:1439);
car20.Name = 'Car 20';
car20.TimeInfo.Units = 'HH:MM';
car20.TimeInfo.Format = 'HH:MM';
plot(car20,'-b')
grid on
hold on
car20_2 = timeseries([demandVehicleSimplified(:,1);demandVehicleSimplified(1,1)],0:60:1440);
car20_2.Name = 'Car 20_2';
car20.TimeInfo.Units = 'HH:MM';
car20.TimeInfo.Format = 'HH:MM';
grid on
plot(car20_2,'-m')
The result x-axis of the code is in 1:1440. How to change it in hh:mm format? I'm following https://www.mathworks.com/help/matlab/ref/timeseries.plot.html#d117e1137935 and searching through the community and find no result.

Answers (0)

Communities

More Answers in the  Distance Learning Community

Categories

Find more on Platform and License 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!