How can I plot two matrices together with different legs

2 次查看(过去 30 天)
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{:});

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-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