
numSamples = 100;
a_am = .1;
a_ph = 0.0;
b_am = .1;
b_ph = 4;
m_a = 1.0;
m_b = 10.0;

t = 0:2*pi/numSamples:numSamples;

a = m_a * cos(a_am*t + a_ph);
b = m_b * cos(b_am*t + b_ph);
c = a + b;



multiplot(2,2);


title('cos(.1*t)'); 
ylabel('signal value');
xlabel('time');
mplot(t,a);

clg;
title('sum'); 
ylabel('signal value');
xlabel('time');
mplot(t,c);

clg;
title('2 * cos(.1*t + 4)'); 
ylabel('signal value');
xlabel('time');
mplot(t,b);

clg;
title('sum'); 
ylabel('signal value');
xlabel('time');
mplot(t,a,t,b,t,c);

