%% Create Multiple Lines with Labels
% Create a vector of normally distributed random numbers and display them in a histogram. Then create three vertical lines with labels at the average value, one standard deviation below the average, and one standard deviation above the average.

data = 5 * randn(1,500) + 20;
histogram(data,'FaceAlpha',0.1,'EdgeAlpha',0.1);
m = mean(data);
s = std(data);
xline([m-s m m+s],'-',{'-1 Standard Dev.','Average','+1 Standard Dev.'})

% Copyright 2020 The MathWorks, Inc.