Defining length of a x-axis

조회 수: 5 (최근 30일)
Ljix
Ljix 2016년 2월 6일
댓글: Walter Roberson 2016년 2월 7일
Is there some way to define the length of x-axis and y-axis on a graph? I'm ploting some complex data and I don't want to be shown the ones that are "far away" from zero.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 2월 6일
xlim([x1 x2])
ylim([y1 y2])
  댓글 수: 2
Ljix
Ljix 2016년 2월 6일
Thank you for your answer. Can you be more specific, where to write this limitations, inside the plot()? This is my code
plot(fr_ori,'ro')
hold on
plot(fradi,'b+')
plot(frarno,'g*')
hold off
Walter Roberson
Walter Roberson 2016년 2월 7일
You can do it any time after the first plot.

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

카테고리

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