Can I have a title over a section of subplots?
1 回表示 (過去 30 日間)
古いコメントを表示
I know about sgtitle and regular titles, I'm just trying to do what's depicted in the diagram I made in paint

0 件のコメント
回答 (1 件)
Alan Stevens
2020 年 10 月 11 日
編集済み: Alan Stevens
2020 年 10 月 11 日
Something like this perhaps
x = 0:0.1:6;
y1 = sin(x);
y2 = sin(2*x);
y3 = cos(x);
y4 = cos(2*x);
subplot(2,2,1)
plot(x,y1)
t = axis;
text(t(2),1.2*t(4),'Title1')
subplot(2,2,2)
plot(x,y2)
subplot(2,2,3)
plot(x,y3)
t = axis;
text(t(2),1.2*t(4),'Title2')
subplot(2,2,4)
plot(x,y4)
You will have to adjust the multipliers in the text commands to suit your own plots.
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Title についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!