Plotting two different data sets on one graph

1 回表示 (過去 30 日間)
Andrew Wileman
Andrew Wileman 2015 年 10 月 23 日
コメント済み: Andrew Wileman 2015 年 10 月 23 日
Hi, As usual, in a bit of a mess! I have two data sets (see attached graphs), that are almost identical in terms of size of array. However, one has decimal notation, the other is a integer, when plotted. Matlab doesn't seem to let me plot both data sets on one graph. I wondered if anyone knows a way round this. I've tried rounding etc, it seems to ruin the data. Hoping someone may be able to help. Andy

採用された回答

Thorsten
Thorsten 2015 年 10 月 23 日
編集済み: Thorsten 2015 年 10 月 23 日
The range of the first graph is 0 to about 900, and 674.981 to 674.982 for the second graph. So the second graph would be a horizontal line when plotted together with the first graph.
You can use a plot with two different y-axes using
plotyy
  1 件のコメント
Andrew Wileman
Andrew Wileman 2015 年 10 月 23 日
Thanks Thorsten

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by