Could any body help me to hold y axis constant number as the x axis changing ?

조회 수: 1 (최근 30일)
Onur PEKER
Onur PEKER 2014년 2월 23일
댓글: Dishant Arora 2014년 2월 23일
I am trying to draw one matrix whose values are changing 1 to 7 on yaxis and I want to determine yaxis' value 7 for every x intervals. I mean if x interval has max value on 1.4 , autoscale plots 0 to 2. I want to prevent this case.

답변 (1개)

Dishant Arora
Dishant Arora 2014년 2월 23일
xlim('auto');
ylim([1 7]);
  댓글 수: 2
Onur PEKER
Onur PEKER 2014년 2월 23일
Thank you for your answer. I tried it but it is limiting max value for x . I need to plot always until 7 without autozoom even if x has max value 0.5 or 1.2 .

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by