give title on the left side of subplot
조회 수: 67 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159321/image.png)
i need to give titles, is it possible to give title at the side of subplot as follows
댓글 수: 0
채택된 답변
KSSV
2016년 12월 30일
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
2018년 9월 19일
And what if I already used the ylabel function to create a label for the y axis?
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!