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.

 採用された回答

Image Analyst
Image Analyst 2018 年 9 月 3 日

1 投票

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

1 件のコメント

michael glenn
michael glenn 2018 年 9 月 3 日
Thanks, That worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by