Histogram, change x/y-axis number jump marks
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm trying to change the marks on the x and y axis. The marks in the picture is 5 for x, and 0,1 in y. Because the y-axis is 0,1 the max out-zoom makes the bars hard to read in the picture (they are 1), I need to move it to see that it goes to 1 in hight (I can't use max/min as I don't know the values (I guess I could find the max value in an matrix and then put that as max value, but there must be an easier way).
What I want is to have x axis every 1 mark , and y mark every 1 or 0,5. And I didn't find anything in the help files.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149472/image.jpeg)
댓글 수: 0
채택된 답변
Thorsten
2015년 4월 25일
axis([0 40 0 1.1])
set(gca, 'XTick', 1:40);
set(gca, 'YTick', 0:0.5:1);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!