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

Principles of Communications: Laboratory Activity 1

The document describes an experiment on plotting amplitude modulation (AM) signals using MATLAB. It involves generating message, carrier and AM signals with different modulation indices ranging from 0% to overmodulation (greater than 100%) and plotting the signals. The MATLAB code generates the signals, divides the plot into 3 subplots and displays the message, carrier and modulated AM signal for each test case.

Uploaded by

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

Principles of Communications: Laboratory Activity 1

The document describes an experiment on plotting amplitude modulation (AM) signals using MATLAB. It involves generating message, carrier and AM signals with different modulation indices ranging from 0% to overmodulation (greater than 100%) and plotting the signals. The MATLAB code generates the signals, divides the plot into 3 subplots and displays the message, carrier and modulated AM signal for each test case.

Uploaded by

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

Principles of Communications

ECE 141

LABORATORY ACTIVITY 1
PLOTTING OF AMPLITUDE MODULATION SIGNALS
0---0--------------------------------------0---0

Submitted by:

Caurelou S.Pitoc
BS ECE IV

Submitted to:

Engr. Alvin B. Viola

V
Exercise 1

MATLAB CODE OUTPUT GRAPHS


clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting input
Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting input
Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value
(f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig
appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of Carrier
Changes to (Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal');
grid on;
Enter the Amplitude of Message Signal=5
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=10
Enter the Carrier frequency=100
1|Page
Exercise 2

MATLAB CODE OUTPUT GRAPH


clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting input Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting input Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value (f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
Mi=(Vm/Vc)*100;
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of Carrier Changes to
(Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal with modulation of O%');
grid on;
Enter the Amplitude of Message Signal=0
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=100
Enter the Carrier frequency=10

2|Page
clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting input Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting input Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value (f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
Mi=(Vm/Vc)*100;
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of Carrier Changes to
(Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal with modulation of 25%');
grid on;
Enter the Amplitude of Message Signal=2.5
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=100
Enter the Carrier frequency=10

3|Page
clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting input Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting input Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value (f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
Mi=(Vm/Vc)*100;
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of Carrier Changes to
(Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal with modulation of 75%');
grid on;
Enter the Amplitude of Message Signal=7.5
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=100
Enter the Carrier frequency=10

4|Page
clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting input Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting input Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value (f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
Mi=(Vm/Vc)*100;
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of Carrier Changes to
(Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal with modulation of 100%');
grid on;
Enter the Amplitude of Message Signal=10
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=10
Enter the Carrier frequency=100

5|Page
Exercise 3

MATLAB CODE OUTPUT GRAPHS


clear all;
close all;
t=0:.001:1;
set(0,'defaultlinelinewidth',2);
Vm=input('Enter the Amplitude of Message Signal=');%Accepting
input Amplitude
Vc=input('Enter the Amplitude of Carrier Signal =');%Accepting
input Amplitude
fm=input('Enter the Message frequency=');%Accepting input value
fc=input('Enter the Carrier frequency=');%Accepting input value
(f2>f1)
Sm=Vm*sin(2*pi*fm*t);%message Signal
subplot(3,1,1);%Plotting frame divided in to 3 rows and this fig
appear at 1st
plot(t,Sm);
xlabel('Time--');
ylabel('Amplitude--');
Mi=(Vm/Vc)*100;
title('Message Signal');
grid on;
Sc=Vc*sin(2*pi*fc*t);%carrier Signal
subplot(3,1,2);
plot(t,Sc);
xlabel('Time--');
ylabel('Amplitude--');
title('Carrier Signal');
grid on;
Sfm=(Vm+(Vm/Vc)*Sm).*sin(2*pi*fc*t);%AM signal, Amplitude of
Carrier Changes to (Vm+Message)
subplot(3,1,3);
plot(t,Sfm);
xlabel('Time--');
ylabel('Amplitude--');
title('AM Signal with Overmodulation');
grid on;
Enter the Amplitude of Message Signal=15
Enter the Amplitude of Carrier Signal =10
Enter the Message frequency=10
Enter the Carrier frequency=100

6|Page

You might also like