Azzera filtri
Azzera filtri

How to display time series in HH:MM?

1 visualizzazione (ultimi 30 giorni)
Muhammad Yasirroni
Muhammad Yasirroni il 3 Mag 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.

Risposte (0)

Community

Più risposte nel  Distance Learning Community

Categorie

Scopri di più su Platform and License in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by