How can I plot two matrices together with different legs

1 visualizzazione (ultimi 30 giorni)
How can I plot two matrices with the same size (1200*12) together with different legs(12+12=24)?

Risposta accettata

Matt J
Matt J il 8 Gen 2018
Modificato: Matt J il 8 Gen 2018
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{:});

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by