%% Create Horizontal 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, '-'.

fplot(@(x) log(x));
xlim([0 15]);
ylim([0 4]);
yline(3,'-','Threshold');

%
% Copyright 2018 The MathWorks, Inc.