Professional Documents
Culture Documents
APPARATUS:
1. Personal Computer.
2. MATLAB 2010.
PROGRAM:
clc;
clear all;
close all;
t=linspace(0,0.2,100000);
fc=1000;
fm=200;
fs=100000;
Am=10;
Ac=10;
m=Am/Ac;
Wc=2*pi*fc*t;
Wm=2*pi*fm*t;
ec=Ac*sin(Wc);
em=Am*sin(Wm);
y=ammod(em,fc,fs,0,Ac);
z=amdemod(y,fc,fs,0,Ac);
l=100000;
subplot(4,1,1);
plot(t,em);
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MESSAGE SIGNAL');
subplot(4,1,2);
plot(t,ec);
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('CARRIER');
AMPLITUDE MODULATION AND DEMODULATION
subplot(4,1,3);
plot(t,y);
axis([0 0.02 -20 20]);
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MODULATED SIGNAL');
subplot(4,1,4);
plot(t,z);
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('DEMODULATED SIGNAL');
RESULT: