i need to give titles, is it possible to give title at the side of subplot as follows

 채택된 답변

KSSV
KSSV 2016년 12월 30일

2 개 추천

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

Fryderyk Kögl
Fryderyk Kögl 2018년 9월 19일
And what if I already used the ylabel function to create a label for the y axis?
Stephen
Stephen 2023년 4월 13일
No answer... of course not

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Tiezheng Song
Tiezheng Song 2019년 1월 29일

1 개 추천

I have found a great answer here. Hope this would be helpful!

카테고리

질문:

2016년 12월 30일

댓글:

2023년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by