필터 지우기
필터 지우기

give title on the left side of subplot

조회 수: 67 (최근 30일)
Elysi Cochin
Elysi Cochin 2016년 12월 30일
댓글: Stephen 2023년 4월 13일
i need to give titles, is it possible to give title at the side of subplot as follows

채택된 답변

KSSV
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
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일
I have found a great answer here. Hope this would be helpful!

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by