Change the axis tick

조회 수: 2 (최근 30일)
Kasper
Kasper 2014년 5월 14일
댓글: Kasper 2014년 5월 14일
Hey
How do I change the axis tick on my x-axis? Right now it ticks= 0, 2, 4, 6 ... etc., but I want it to go: 0, 1, 2, 3, 4, 5 ... etc.
Thank you!

채택된 답변

Sara
Sara 2014년 5월 14일
set(gca,'xtick',1:1:10)
replace 10 with your larger value
  댓글 수: 1
Kasper
Kasper 2014년 5월 14일
It worked! thank you! :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by