t = 0:0.0001:1;
x1 = sin(2*pi*t);
x2 = cos(2*pi*1000*t);
x3 = x1.*x2;
x4 = x1+x2;
subplot(2,1,1);
plot(t,x1,'r');
hold on;
plot(t,x2,'b');
legend('sin','cos');
title('Sin and Cos Waves');
subplot(2,1,2);
plot(t,x3,'g');
hold on;
plot(t,x4,'m');
legend('sin*cos','sin+cos');
title('Multiplication and Addition of Sin and Cos Waves');