Remove every second tick on y-axis

Hi
I have the following code
x=-6:0.1:6;
figure(1)
plot(x, (1)./(1+4*x.^2), 'b')
grid on
When I plot this, the y-axis runs from 0 to 1 in steps of 0.1. However I would very much like for the y-axis to go in steps of 0.2. Is there a way to remove every second tick and the associated grid-line?
Best, Niels.

댓글 수: 1

Walter Roberson
Walter Roberson 2012년 9월 10일
set_param would be for simulink, not for basic MATLAB.

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

 채택된 답변

Matt Fig
Matt Fig 2012년 9월 10일

1 개 추천

set(gca,'ytick',0:.2:1)

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by