%% Delete Legend
% Create a plot of sine and cosine and add a legend. 

% Copyright 2015 The MathWorks, Inc.


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

figure
plot(x,ysin,x,ycos)
legend('sine','cosine')


%%
% Delete the legend.
legend('off')