Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Mohamed Nedal
Mohamed Nedal le 11 Mai 2017
Commenté : Manoj le 29 Juil 2018
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?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by