Effacer les filtres
Effacer les filtres

give title on the left side of subplot

67 vues (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 30 Déc 2016
Commenté : Stephen le 13 Avr 2023
i need to give titles, is it possible to give title at the side of subplot as follows

Réponse acceptée

KSSV
KSSV le 30 Déc 2016
You can make title as ylabel and achieve what you want..
x = linspace(0,10);
y1 = sin(x);
y2 = sin(5*x);
figure
subplot(2,1,1);
plot(x,y1)
ylabel('title1')
set(get(gca,'YLabel'),'Rotation',0)
subplot(2,1,2);
plot(x,y2)
ylabel('title2')
set(get(gca,'YLabel'),'Rotation',0)
  2 commentaires
Fryderyk Kögl
Fryderyk Kögl le 19 Sep 2018
And what if I already used the ylabel function to create a label for the y axis?
Stephen
Stephen le 13 Avr 2023
No answer... of course not

Connectez-vous pour commenter.

Plus de réponses (1)

Tiezheng Song
Tiezheng Song le 29 Jan 2019
I have found a great answer here. Hope this would be helpful!
  1 commentaire
madhan ravi
madhan ravi le 29 Jan 2019
If your using 2018b use sgtitle() .

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots 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