Change the axis tick

4 visualizaciones (últimos 30 días)
Kasper
Kasper el 14 de Mayo de 2014
Comentada: Kasper el 14 de Mayo de 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!

Respuesta aceptada

Sara
Sara el 14 de Mayo de 2014
set(gca,'xtick',1:1:10)
replace 10 with your larger value
  1 comentario
Kasper
Kasper el 14 de Mayo de 2014
It worked! thank you! :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by