フィルターのクリア

How can I plot two matrices together with different legs

1 回表示 (過去 30 日間)
Seyed Sahand Mohammadi Ziabari
Seyed Sahand Mohammadi Ziabari 2018 年 1 月 8 日
編集済み: Matt J 2018 年 1 月 8 日
How can I plot two matrices with the same size (1200*12) together with different legs(12+12=24)?

採用された回答

Matt J
Matt J 2018 年 1 月 8 日
編集済み: Matt J 2018 年 1 月 8 日
Just concatenate the two matrices and plot them as one,
plot([Data1,results])
leg1=arrayfun(@(i) ['Data1-',num2str(i)],1:12,'uni',0);
leg2=arrayfun(@(i) ['results-',num2str(i)],1:12,'uni',0);
legend(leg1{:},leg2{:});
  2 件のコメント
Seyed Sahand Mohammadi Ziabari
Seyed Sahand Mohammadi Ziabari 2018 年 1 月 8 日
It just shows one of them Data1 at the leg!
Matt J
Matt J 2018 年 1 月 8 日
編集済み: Matt J 2018 年 1 月 8 日
Not for me...

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

その他の回答 (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