www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/AddTitletoSpecificAxesExample.m
%% Add Title to Specific Axes % Copyright 2015 The MathWorks, Inc. %% % 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')