0% found this document useful (0 votes)
17 views

Amp Mod Function

This document describes an amplitude modulation (AM) simulation using Matlab. It defines a modulating signal, carrier signal, and modulates the carrier with the modulating signal using the ammod function. It then demodulates the modulated signal using amdemod and plots the original signals, modulated signal, and demodulated signal for comparison.

Uploaded by

Kunal Chanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Amp Mod Function

This document describes an amplitude modulation (AM) simulation using Matlab. It defines a modulating signal, carrier signal, and modulates the carrier with the modulating signal using the ammod function. It then demodulates the modulated signal using amdemod and plots the original signals, modulated signal, and demodulated signal for comparison.

Uploaded by

Kunal Chanda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

KUNAL CHANDA,BSSE/UT/EC/15/028

TITLE:AMPLITUDE MODULATION(WITH USING FUNCTION):

CODE:
clc
clear all
close all
t=linspace(0,0.2,100000);
fc=800;
fm=200;
fs=100000;
Am=5;
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(1:l),em(1:l));
xlabel('time(s)');
ylabel('Amplitude in volts(V)');
title('Modulating Signal');
subplot(4,1,2);
plot(t(1:l/2),ec(1:l/2));
xlabel('time(s)');
ylabel('Amplitude in volts(V)');
title('Carrier Signal');
subplot(4,1,3);
plot(t(1:l),y(1:l));
axis([0 0.02 -20 20])
xlabel('time(s)');
ylabel('Amplitude in volts(V)');
title(' Signal');
subplot(4,1,4);
plot(t(1:l),z(1:l));
xlabel('time(s)');
ylabel('Amplitude in volts(V)');
title('Demodulated Signal');
OUTPUT:
Amplitude in volts(V)

Modulating Signal
5

-5
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
time(s)
Carrier Signal
Amplitude in volts(V)

10

-10
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
time(s)
Amplitude in volts(V)

Signal
20

-20
0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02
time(s)
Demodulated Signal
Amplitude in volts(V)

10

-10
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
time(s)

You might also like