Borrar filtros
Borrar filtros

give title on the left side of subplot

67 visualizaciones (últimos 30 días)
Elysi Cochin
Elysi Cochin el 30 de Dic. de 2016
Comentada: Stephen el 13 de Abr. de 2023
i need to give titles, is it possible to give title at the side of subplot as follows

Respuesta aceptada

KSSV
KSSV el 30 de Dic. de 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 comentarios
Fryderyk Kögl
Fryderyk Kögl el 19 de Sept. de 2018
And what if I already used the ylabel function to create a label for the y axis?
Stephen
Stephen el 13 de Abr. de 2023
No answer... of course not

Iniciar sesión para comentar.

Más respuestas (1)

Tiezheng Song
Tiezheng Song el 29 de En. de 2019
I have found a great answer here. Hope this would be helpful!

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by