The program for DSBSC Modulation is:
clc;
clr;
fs=2;
fc=50;
t=0:0.001:1;
x=sin(2*pi*fs*t);
y=sin(2*pi*fc*t);
subplot(2,2,1);
plot(t,x);
xlabel('time');
ylabel('amplitude');
title('message signal');
subplot(2,2,2);
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
z=x.*y;
subplot(2,2,3);
plot(z,t);
xlabel('time');
ylabel('amplitude');
title('DSBSC Modulated Waveform');
d=z./y;
subplot(2,2,4);
plot(t,d);
xlabel('time');
ylabel('amplitude');
title('Demodulated Wave');
The output of the code is given as follows:
clc;
clr;
fs=2;
fc=50;
t=0:0.001:1;
x=sin(2*pi*fs*t);
y=sin(2*pi*fc*t);
subplot(2,2,1);
plot(t,x);
xlabel('time');
ylabel('amplitude');
title('message signal');
subplot(2,2,2);
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
z=x.*y;
subplot(2,2,3);
plot(z,t);
xlabel('time');
ylabel('amplitude');
title('DSBSC Modulated Waveform');
d=z./y;
subplot(2,2,4);
plot(t,d);
xlabel('time');
ylabel('amplitude');
title('Demodulated Wave');
The output of the code is given as follows:
No comments:
Post a Comment