How to plot multiple data sets on the same graph

2 ビュー (過去 30 日間)
Aamna Sami
Aamna Sami 2017 年 12 月 9 日
コメント済み: Aamna Sami 2017 年 12 月 12 日
The following coding is only plotting the first two variables on the plot.
plot(years,run_rate,'r-s',years,CL,'g-',years,UCL,'g-',years,LCL,'g-');

採用された回答

Birdman
Birdman 2017 年 12 月 9 日
Use hold on command between. For instance:
plot(years,run_rate,'r-s');hold on;plot(years,CL,'g-');hold on;plot(years,UCL,'g-');hold on;plot(years,LCL,'g-')
  5 件のコメント
Birdman
Birdman 2017 年 12 月 9 日
Can you accept the answer so that other people having the same problem will know there is a working solution.
Aamna Sami
Aamna Sami 2017 年 12 月 12 日
Sure:) Thanks again for your prompt responses!

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

その他の回答 (0 件)

カテゴリ

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