MATLAB CODE- Generation of DSBSC Signal

                                                               DSBSC SIGNAL

Aim:To obtain a MATLAB program for generation of DSBSC signal.

Apparatus:PC loaded with MATLAB software.

Program:
close all;
clear all;
tmin=0;
tmax=10^-3;
step=(tmax-tmin)/1000;
t=tmin:step:tmax;
Am=1;
fm=2*10^3;
m=Am*sin(2*pi*fm*t);
figure(1);
subplot(3,1,1);
plot(t,m);
xlabel('time');
ylabel('amplitude')';
title('message signal');
grid on;
tmin=0;
tmax=10^-3;
step=(tmax-tmin)/1000;
t=tmin:step:tmax;
Ac=1;
fc=10^4;
c=Ac*sin(2*pi*fc*t);
subplot(3,1,2);
plot(t,c);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
grid on;
s=m.*c;
%figure(2);
subplot(3,1,3);
plot(t,s);
xlabel('time');
ylabel('amplitude');
title('DSB-SC signal');
grid on;
hold on;
plot(t,Ac*Am*m,'r');
hold on;
plot(t,-Ac*Am*m,'r');

hold off;


Output Waveforms:


Result: The MATLAB program for generation of DSBSC signal is written and the graphs are also obtained.

MATLAB CODE- Generation of DSBSC Signal MATLAB CODE- Generation of DSBSC Signal Reviewed by Suresh Bojja on 4/21/2016 10:45:00 PM Rating: 5
Theme images by sebastian-julian. Powered by Blogger.