0% found this document useful (0 votes)
30 views2 pages

LAB Report

The document describes a lab experiment on frequency modulation using MATLAB. The objective was to learn how to perform frequency modulation in MATLAB. The code defines the carrier signal, message signal, and frequency modulated signal. It then plots the time domain and frequency domain representations of these signals. The output shows the time domain plots of the carrier, message, and modulated signals along with the frequency spectrum of the modulated signal.

Uploaded by

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

LAB Report

The document describes a lab experiment on frequency modulation using MATLAB. The objective was to learn how to perform frequency modulation in MATLAB. The code defines the carrier signal, message signal, and frequency modulated signal. It then plots the time domain and frequency domain representations of these signals. The output shows the time domain plots of the carrier, message, and modulated signals along with the frequency spectrum of the modulated signal.

Uploaded by

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

LAB REPORT # 02

FREQUENCY MODULATION

Objective:
In this lab we learnt how to perform the frequency modulation using
MATLAB.

Software requirement:
MATLAB

Code:

clear all
close all
f=-5:0.01:5 %frequency interval
fc=5 %carrier frequency
ac=10 %carrier amplitude
am=5 %message amplitude
fm=2 %message frequency
b=1.5 %modulation index
t=0:0.01:10 %time interval
sc=ac*sin(2*pi*fc*t) %carrier signal
sm=b*(am*cos(2*pi*fm*t))/fm; %message signal
FM=ac*cos((2*pi*fc*t)+sm); %frequency modulated signal
subplot(2,2,1)
plot(t,sc)
subplot(2,2,2)
plot(t,sm)
subplot(2,2,3)
plot(t,FM)
y=(abs(fft(FM)))
length(f)
LAB REPORT # 02

length(y)
subplot(2,2,4)
plot(f,y)

OUTPUT WAVEFORM:

FREQUENCY MODULATION OUTPUT

10 4

5 2

0 0

-5 -2

-10 -4
0 2 4 6 8 10 0 2 4 6 8 10

10 3000

2500
5
2000

0 1500

1000
-5
500

-10 0
0 2 4 6 8 10 -5 0 5

You might also like