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.

 Réponse acceptée

Image Analyst
Image Analyst le 3 Sep 2018

1 vote

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

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