Consider the following signal st B0 B1 cos2 pi f0 t alpha
     Consider the following signal  s(t) = B_0 + B_1 cos(2 pi f_0 t + alpha_1) + B_2 cos(4 pi f_0 t + alpha_20 + B_3 cos(6 pi f_0 t + alpha_3)  with the following:  For f_0 = 100 and 0  
  
  Solution
f0=100;
 t=0:0.1:10;
 B0=0;
 B1=1;
 B2=4;
 B3=2;
 a1=0;a2=45;a3=60;
 H1=B1*cos((2*pi*f0*t)+a1);
 H2=B2*cos((4*pi*f0*t)+a2);
 H3=B2*cos((6*pi*f0*t)+a3);
 b=H1+H2;
 c=b+H3;
 figure(1)
 subplot(1,3,1)
 plot(t,H1)
 xlabel(\'t\')
 title(\'Harmonic1\');
 subplot(1,3,2)
 plot(t,H2)
 xlabel(\'t\')
 title(\'Harmonic2\');
 subplot(1,3,3)
 plot(t,H3)
 xlabel(\'t\')
 title(\'Harmonic3\');
 figure(2)
 subplot(1,2,1);
 plot(t,b);
 xlabel(\'t\')
 title(\'Harmonic1+Harmonic2\');
 subplot(1,2,2);
 plot(t,c);
 xlabel(\'t\')
 title(\'Harmonic1+Harmonic2+Harmonic3\');

