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 Center および File Exchange2-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