%% Specify Legend Location and Remove Border
% Create a plot of sine and cosine. Add a legend to the bottom left of the axes. 

% Copyright 2015 The MathWorks, Inc.

x = linspace(0,2*pi,50);
ysin = sin(x);
ycos = cos(x);

figure
stem(x,ysin)
hold all 
plot(x,ycos)
hold off

legend('sin(x)','cos(x)','Location','southwest')


%%
% Remove the legend border. 
legend('boxoff')
