%% Add Title to Specific Axes
% Create two subplots and return the handles to the axes objects, s(1) and s(2).

figure
s(1) = subplot(2,1,1);
plot((1:10).^2)
s(2) = subplot(2,1,2);
plot((1:10).^3)

%
% Add a title to each subplot by referring to its axes handle, s(1), or s(2).

title(s(1),'Top Plot')
title(s(2),'Bottom Plot')

% Copyright 2015 The MathWorks, Inc.