How to display time series in HH:MM?

조회 수: 1 (최근 30일)
Muhammad Yasirroni
Muhammad Yasirroni 2019년 5월 3일
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