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

3 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Star Strider
Star Strider el 11 de Mayo de 2017
You probably are looking for the datetick (link) function.
  3 comentarios
Mohamed Nedal
Mohamed Nedal el 11 de Mayo de 2017
I tried it too but it didn't work.
Walter Roberson
Walter Roberson el 11 de Mayo de 2017
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by