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

x = linspace(0,2*pi,50);
ysin = sin(x);
ycos = cos(x);
plot(x,ysin,x,ycos)
legend('sine','cosine')

%
% Delete the legend.

legend('off')

% Copyright 2012 The MathWorks, Inc.