subplot hoe to add a tile?

subplot, how can I add a total title? neglect gtext. anyknow knows a better way? thankx

 채택된 답변

Grzegorz Knor
Grzegorz Knor 2012년 2월 22일

0 개 추천

Try this code:
for i = 1:4
subplot(2, 2, i)
plot(rand(1, 10));
end
axes('Units','Normal','Position',[.075 .075 .85 .85],'Visible','off');
set(get(gca,'Title'),'Visible','on')
title('global title','FontWeight','bold','FontSize',15);
or use one of these function from fex:

댓글 수: 1

Lei
Lei 2012년 2월 22일
Hi,Grzegorz Knor
Thanks, I am using one of the function from your link.
It works fine.
Thanks again for your help.
Lei

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

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 2월 22일

0 개 추천

doc suptitle
if you have the Bioinformatics Toolbox

카테고리

태그

질문:

Lei
2012년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by