Defining length of a x-axis

12 次查看(过去 30 天)
Ljix
Ljix 2016-2-6
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 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by