how to plot two graphs ?
Ältere Kommentare anzeigen
I have two matrices to plot
A=[1 1.2
3 2.3
7 3.2
8 3 ]
and
B=[2 3.2
4 4.5
5 7
6 0 ]
I want to create a plot
plot(A(:,1),A(:,2),'r');
hold on
plot(B(:,1),B(:,2),'b');
but instead of x it should be month. Any suggestion would be appreciated in advance.
Akzeptierte Antwort
Weitere Antworten (1)
Chad Greene
am 8 Mär. 2016
Is this what you want?
set(gca,'xtick',1:8,'xticklabel',{'jan','feb','mar','apr','may','jun','jul','aug'})
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!