%% Add Title to Current Figure  
% Create a figure and display a title in the current axes.   

% Copyright 2015 The MathWorks, Inc.


%%  
figure
plot((1:10).^2)
title('My Title')  

%% 
% You also can call |title| with a function that returns a string. For example,
% the |date| function returns a string containing today's date.  
title(date) 

%%
% MATLAB(R) sets the output of |date| as the axes title.   
