integer increment on a plot axis

조회 수: 38 (최근 30일)
Villanova
Villanova 2011년 8월 19일
Hi, I am trying to plot wind speed vs Beaufort number (which is integers from 0 to 10). How can I make my y-axis in a way to only show integer increments 0 1 ... 10. Thanks in advance.

채택된 답변

Friedrich
Friedrich 2011년 8월 19일
Hi,
you can try
set(gca,'ytick',0:10)
To limit the y-axis to 0 to 10 do
set(gca,'ylim',[0,10])
  댓글 수: 1
Villanova
Villanova 2011년 8월 19일
Thank you so much Friedrich.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by