How to plot the main title to a figure with many subplots
Post date: Aug 31, 2011 9:33:35 PM
How to plot the main title to a figure with many subplots?
The solution provided by Les Éditions Élodie Roux from Mathworks forum.
% you have to do your subplots:
x=[0:1:10];
figure
subplot(1,2,1), plot(x,x.^2)
subplot(1,2,2), plot(x,x.^3-1)
% and then, type:
ha = axes('Position',[0 0 1 1],'Xlim',[0 1],'Ylim',[0 1],'Box','off','Visible','off','Units','normalized', 'clipping' , 'off');
text(0.5, 1,'\bf Do you like this title?','HorizontalAlignment','center','VerticalAlignment', 'top');