What's the corresponding function to "xtickformat" in Matlab R2015a?

1 次查看(过去 30 天)
Hello, I want to use the function:
xtickformat('hh:mm')
in Matlab R2015a, but it told me:
Undefined function or variable 'xtickformat'.
How can I fix this?

采纳的回答

Star Strider
Star Strider 2017-5-11
You probably are looking for the datetick (link) function.
  3 个评论
Walter Roberson
Walter Roberson 2017-5-11
What is the class() of your data on the x axis?
Note: you need to re-do the datetick() after each zoom or pan. datetick() sets the axes xticklabel property to particular strings, and is not able to update automatically when the tick locations change due to zoom or pan.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by