Borrar filtros
Borrar filtros

How to display time series in HH:MM?

1 visualización (últimos 30 días)
Muhammad Yasirroni
Muhammad Yasirroni el 3 de Mayo de 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.

Respuestas (0)

Comunidades de usuarios

Más respuestas en  Distance Learning Community

Categorías

Más información sobre Platform and License en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by