
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;



subplot(2,2,1);

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


% clg;
subplot(2,2,3);
plot(t,c);
title('Sum'); 
ylabel('signal value');
xlabel('time');


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


% clg;
subplot(2,2,4);
plot(t,a,t,b,t,c);
title('All Plots'); 
ylabel('signal value');
xlabel('time');