plot time in HH:MM ix x axis
조회 수: 4(최근 30일)
표시 이전 댓글
채택된 답변
Ankit
2022년 1월 24일
You need to change the format using datetick.
date={'15:10:34.600 AM 2/26/2017','15:20:34.700 AM 2/26/2017','15:30:34.800 AM 2/26/2017','15:40:34.900 AM 2/26/2017'};
timeFormat='HH:MM:SS.FFF AM mm/dd/yyyy';
xdatenum=datenum(date,timeFormat);
data=0:3;
plot(xdatenum,data,'*');
datetick('x','HH:MM');
댓글 수: 6
Ankit
2022년 1월 24일
@Steven Lord thanks for your suggestion. now I know one more way to achieve this :)
추가 답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!