%% Create Vertical Line with Label
% To create a line with a label, you must also specify the line style.  The default line style is a solid line, '-'.

x = linspace(0,6,100);
y = exp(x);
plot(x,y)
xline(4.5,'-',{'Acceptable','Limit'});

%
% Copyright 2018 The MathWorks, Inc.