how to write a axis in hours format
2 次查看(过去 30 天)
显示 更早的评论
How can I change the x axis to hourse format?
ex: 1:00 and 12:00
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289941/image.png)
0 个评论
回答(2 个)
Ajay Kumar
2020-5-3
Again it resembles the same question you asked, which already has the answer.
0 个评论
Image Analyst
2020-5-3
I believe it would be something like this:
% Make x axis be times.
datetick('x', 'HH:MM PM', 'keepticks');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!