graph axes and its scaling

2 次查看(过去 30 天)
Roya Rajabi
Roya Rajabi 2020-5-22
回答: dpb 2020-5-22
Hi
I am trying to have hourly heat transfer graph for three months but in the graph as has been attached the x axes shows every 500 hours
How can I change it two evey day or week...

回答(1 个)

dpb
dpb 2020-5-22
If you haven't, turn your time vector into datetime (if it is actual calendar time) or a duration (if it is elapsed time from some origin) and plot versus it instead. plot has been extended to be aware of those time class objects and will use an appropriate axis automagically for you...which you can then adjust to taste...

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by