You are on page 1of 2

NOISE

clc;
close all;
clear all;
t=-2*pi:0.1:2*pi;
m=sin(t);
c=sin(8*t);
y1=m.*c;
y=y1+c;
n=rand(1,length(t));
m1=m+n;
c1=c+n;
sc=y1+n;
fc=y+n;
subplot(3,3,1);
plot(t,m);
xlabel('time');
ylabel('amplitude');
title('message');
subplot(3,3,2)
plot(t,c);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
subplot(3,3,3);
plot(t,y1);
xlabel('time');
ylabel('amplitude');
title('DSB-SC signal');
subplot(3,3,4)
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('DSB-FC');
subplot(3,3,5);
plot(t,n);
xlabel('time');
ylabel('amplitude');
title('noise signal');
subplot(3,3,6);
plot(t,m1);
xlabel('time');
ylabel('amplitude');
title('message signal with noise');
subplot(3,3,7);
plot(t,c1);
xlabel('time');
ylabel('amplitude');
title('carrier signal with noise');
subplot(3,3,8);
plot(t,sc);
xlabel('time');
ylabel('amplitude');
title('DSB-SC with noise');
subplot(3,3,9);
plot(t,fc);
xlabel('time');

ylabel('amplitude');
title('DSB-FC with noise');

You might also like