www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateColoredTitleUsingNameValuePairArgumentExample.m

    %% Create Colored Title Using Name,Value Pair Argument  

% Copyright 2015 The MathWorks, Inc.


%% 
% Use the |Name,Value| pair |'Color','m'| to set the color of the title
% to magenta. 
figure
plot((1:10).^2)
title('Case number # 3','Color', 'm')