%for frequency 150 Hz fs=8000; A=1; f=150; t=0:127; x1=A*sin(2*pi*f/fs*t); subplot(2,3,1); plot(t,x1); xlabel('time'); ylabel('amplitude'); title('sinusoidal signal x1'); %for frequency 450 Hz fs=8000; A=1; f=450; t=0:127; x2=A*sin(2*pi*f/fs*t); subplot(2,3,2); plot(t,x2); xlabel('time'); ylabel('amplitude'); title('sinusoidal signal x2'); %for frequency 1500 Hz fs=8000; A=1; f=1500; t=0:127; x3=A*sin(2*pi*f/fs*t); subplot(2,3,3); plot(t,x3); xlabel('time'); ylabel('amplitude'); title('sinusoidal signal x3'); %for delaying in x1 y1=x1-20; subplot(2,3,4) plot(t,y1); xlabel=('time'); ylabel=('amplitude'); title=('delayed signal'); % signal after adding x1 and x2 xadd= x1 + x2 ; subplot(2,3,5); plot(t,xadd); xlabel=('time'); ylabel=('amplitude'); title=('result of addition of x1 and x2'); %multiply of signal x1 and x3 xmult=x1.*x3; subplot(2,3,6); plot(t,xmult); xlabel=('time'); ylabel=('ampliude'); title=('result of multiplication of x1 and x3');
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more