MATLAB Answers

Im ploting a graph where my x axis is in time format. How do I adjust the intervals of the x axis to be 15 minutes? Start at 00:00:00 ending at 23:45:00

1 view (last 30 days)
Kamil Haziq
Kamil Haziq on 22 Mar 2018
Answered: Benjamin Großmann on 24 Apr 2018

  0 Comments

Sign in to comment.

Answers (1)

Benjamin Großmann
Benjamin Großmann on 24 Apr 2018
You can get the char array containing your requested date values by
charArray = datestr(0:minutes(15):hours(23.75),'HH:MM:ss');
then you have to adjust your axes and set the charArray as xTickLabel.

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by