MATLAB Answers

graph axes and its scaling

1 view (last 30 days)
Roya Rajabi
Roya Rajabi on 22 May 2020
Answered: dpb on 22 May 2020
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...

  0 Comments

Sign in to comment.

Answers (1)

dpb
dpb on 22 May 2020
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...

  0 Comments

Sign in to comment.


Translated by