I have a histogram with the x-axis labeled from 0 to 20 in increments of 5 (0-5-10-15-20). I would like to display all of the numbers from 0 to 20 instead (0-1-2-3-4-5...20). Thanks in advance.

 Respuesta aceptada

Image Analyst
Image Analyst el 3 de Sept. de 2018

1 voto

Try adding this command after you plot it:
xticks(0 : 20)

Más respuestas (0)

Etiquetas

Preguntada:

el 3 de Sept. de 2018

Comentada:

el 3 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by