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

    %% Specify Text Size and Color
% Create a line plot and add a text description to the axes. Use red, size
% 14 font.

% Copyright 2015 The MathWorks, Inc.


plot(1:10)
text(2,8,'A Simple Plot','Color','red','FontSize',14)