필터 지우기
필터 지우기

Histogram, change x/y-axis number jump marks

조회 수: 4 (최근 30일)
Frejo466
Frejo466 2015년 4월 25일
답변: Thorsten 2015년 4월 25일
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.

채택된 답변

Thorsten
Thorsten 2015년 4월 25일
axis([0 40 0 1.1])
set(gca, 'XTick', 1:40);
set(gca, 'YTick', 0:0.5:1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by