Wednesday, July 15, 2009

Addition of two sinusoids

% Addition of two sinusoidal sequence x= sin(0.2*pi*n) + sin (0.5*pi*n)
% *********************************************************************

N=50;
n=0:1:N-1;
xn= sin(0.3*pi.*n) + sin(0.7*pi.*n);
subplot(2,1,1),stem(n,xn);
subplot(2,1,2),plot(n,xn);
xlabel('n');
ylabel('xn');
title('Addition of two Sinusoidal Sequence');

No comments: