MATLAB: How to convert xtick label to real time? Time is from 18:00 to 23:50 with every 10 minutes interval, so axes for X is from 1 to 36.
datetimextic plot
Best Answer
Which release? Post HG2, usedatetime for x axis variable andplot is time-aware. Prior, usedatenum for x axis variable anddatetick to format the time axis.
NB: The format string for a duration array isNOT consistent withdatetime andplot behaves somewhat differently between the two. It use'DurationTickFormat' but the allowable format strings aren't the same and unlike datetime, the format property of the duration variable seems to "stick".
Best Answer