How to display time series in HH:MM?

1 次查看(过去 30 天)
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.

回答(0 个)

社区

类别

Help CenterFile Exchange 中查找有关 Platform and License 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by