www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CombineTwoTypesOfAnnotationsExample.m
%% Combine Two Types of Annotations % Create a simple line plot. Then, add a bent arrow to the graph by % combining a line and an arrow annotation. % Copyright 2015 The MathWorks, Inc. figure plot(1:10) xl = [.3 .3]; yl = [.3 .4]; annotation('line',xl,yl) xa = [.3 .4]; ya = [.4 .4]; annotation('arrow',xa,ya)