www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ModifyAnnotationAfterCreationExample.m
%% Modify Annotation After Creation % Add a text arrow to a figure and return the annotation % text arrow object, |a|. % Copyright 2015 The MathWorks, Inc. figure plot(1:10) x = [0.3,0.5]; y = [0.6,0.5]; a = annotation('textarrow',x,y,'String','y = x '); %% % Modify properties of the annotation text arrow using |a|. For example, % change the color to red and the font size to 14 points. a.Color = 'red'; a.FontSize = 14; %% % See the annotation property pages for a list of properties for each type % of annotation.