How do i put a title for my entire subplot?
조회 수: 26 (최근 30일)
이전 댓글 표시
i have a 3x3 subplot with the first component looking like this:
subplot(3,3,1),plot(AnkleAng_X(:,1:5))
title('Transverse Plane')
ylabel('Ankle Angle(°)')
I want to put a title at the top of the subplot. My code will create 4, 3x3 subplots so i need titles to differentiate each of them.
댓글 수: 0
채택된 답변
Image Analyst
2014년 12월 8일
You can use text() or use suplabel: http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel
댓글 수: 3
Image Analyst
2021년 2월 19일
But that was the 7 year old answer. Now the preferred way is to use sgtitle() like Cris mentioned below, instead of suptitle().
추가 답변 (1개)
Cris LaPierre
2018년 10월 25일
There is now (in r2018b) a function in base MATLAB for placing a title over a grid of subplots. It is called sgtitle.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!