% This script plots sin(x) and cos(x) in the same Figure
% Window for values of a x ranging from 0 to 2pi

%% Create vectors and plot
clf
x = 0: 2 * pi/40: 2*pi;
y = sin(x);
plot(x,y,'ro')
hold on
y = cos(x);
plot(x,y,'b+')

%% Add legends, axis labels, and title
legend('sin', 'cos')
xlabel('x')
ylabel('sin(x) or cos(x)')
title('sin and cos on one graph')
