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)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

태그

질문:

2018년 9월 3일

댓글:

2018년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by