How to give axis labels in plotyy comand while it is used in subplot(2.​1.1)......​.....

3 vues (au cours des 30 derniers jours)
Chris Martin
Chris Martin le 27 Mai 2014
Commenté : Chris Martin le 27 Mai 2014
How to give axis labels in plotyy comand while it is used in subplot(2.1.1)...........

Réponses (1)

rifat
rifat le 27 Mai 2014
Modifié(e) : rifat le 27 Mai 2014
x = 1:5;
y1 = 1:5;
y2 = 5:-1:1;
figure
subplot(2,1,1)
[ax h1 h2]=plotyy(x,y1,x,y2);
set(get(ax(1),'Ylabel'),'String','this is Y axis 1!!!');
set(get(ax(2),'Ylabel'),'String','this is Y axis 2!!!');

Catégories

En savoir plus sur Two y-axis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by