Change the axis tick

1 vue (au cours des 30 derniers jours)
Kasper
Kasper le 14 Mai 2014
Commenté : Kasper le 14 Mai 2014
Hey
How do I change the axis tick on my x-axis? Right now it ticks= 0, 2, 4, 6 ... etc., but I want it to go: 0, 1, 2, 3, 4, 5 ... etc.
Thank you!

Réponse acceptée

Sara
Sara le 14 Mai 2014
set(gca,'xtick',1:1:10)
replace 10 with your larger value
  1 commentaire
Kasper
Kasper le 14 Mai 2014
It worked! thank you! :)

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by