フィルターのクリア

How can i show two graphs same

1 回表示 (過去 30 日間)
Muhammad
Muhammad 2013 年 10 月 11 日
コメント済み: Muhammad 2013 年 10 月 11 日
Hi everybody
i have data from two techniques. one technique: x values (0-500) and 500 corresponding y values. 2nd technique: x values (0-200) and 200 corresponding y values.
Problem if i make these graphs they show same graph but less values of x the graph is restricted. i want that both graphs will show on with overlapping. i mean both start with the same value and end with the same value and shows overlapping or looks same.
muhammad
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 11 日
Can you give a short example, for example
% x=0:2 and corresponding y
% x=0:5 and corresponding y

サインインしてコメントする。

回答 (1 件)

sixwwwwww
sixwwwwww 2013 年 10 月 11 日
Perhaps you want something like this(if I understood correctly):
x1 = 1:500;
y1 = x1.^2;
x2 = 1:200;
y2 = x2.^2;
plot(x1, y1, x2, y2), legend('y1', 'y2')
  1 件のコメント
Muhammad
Muhammad 2013 年 10 月 11 日
編集済み: Muhammad 2013 年 10 月 11 日
No, i am inserting the image
. there are two series from different two techniques. i want a graph in which x1=x2 and y1 =y2.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by