Header Ads

Header ADS

Amplitude Modulation (AM) Using MATLAB


Amplitude modulation is defined as the multiplication of one time-domain signal by another time-domain signal. The signals may or may not be complex in nature. It is impossible to have amplitude modulation unless at least two different signals are involved. Modulation is inherently a non-linear process, and always gives rise to frequency components that did not exist in either of the two original signals.
Program Code:
clc;
clear all;
close all;

t=input('Enter the value of time period: ');
A1=input('Enter the value of Amplitude1: ');
A2=input('Enter the value of Amplitude2: ');
f1=input('Enter the value of Frequency1: ');
f2=input('Enter the value of Frequency2: ');

%% DSB-SC:
vd=A1*cos(2*pi*f1*t);
vc=A2*cos(2*pi*f2*t);
ft=vc.*vd;
am=ft+vc;
figure(1);
plot(t,vd);
xlabel('Time period');
ylabel('Amplitude');
title('The message signal');
figure(2);
plot(t,vc);
xlabel('Time period');
ylabel('Amplitude');
title('The carrier signal');
figure(3);
plot(t,ft);
xlabel('Time period');
ylabel('Amplitude');
title('The modulated signal');
figure(4);
plot(t,am);
xlabel('Time period');
ylabel('Amplitude');
title('The ideal modulated signal');


%% DSB-FC

%% User define
t=input('Enter the value of time period: ');
vm=input('Enter the value of Amplitude1: ');
vc=input('Enter the value of Amplitude2: ');
fm=input('Enter the value of Frequency1: ');
fc=input('Enter the value of Frequency2: ');

%% DSB-FC
wc=2*pi*fc;
wm=2*pi*fm;
V1=(vc+vm)*sin(wm*t);
V2=-((vc+vm)*sin(wm*t));
Vm=vm*sin(wm*t);
Vc=vc*sin(wc*t);
Vam=(1+sin(wm*t).*(sin(wc*t)));
figure;
plot(t,Vam);

hold on;
plot(t,V1,'b');
plot(t,V2,'r');
xlabel('Time period');
ylabel('Amplitude');
title('The ideal modulated DBS-FC signal');
grid on;

Result:
Enter the value of time period: 0:0.001:1
Enter the value of Amplitude1: 5
Enter the value of Amplitude2: 8
Enter the value of Frequency1: 10
Enter the value of Frequency2: 30



Enter the value of time period: 0:0.001:1
Enter the value of Amplitude1: 5
Enter the value of Amplitude2: 8
Enter the value of Frequency1: 10
Enter the value of Frequency2: 30

  we know about amplitude modulation. Amplitude modulation is defined as the multiplication of one time-domain signal by another time-domain signal.

No comments

Powered by Blogger.