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

Jaypee Institute of Information Technology: Matlab Project

This document contains the MATLAB code for simulating FM (frequency modulation) modulation. The code takes in user inputs for the message amplitude, carrier amplitude, message frequency, carrier frequency, and modulation index. It then generates and plots the message signal, carrier signal, and frequency modulated signal over time. The plots are displayed in three subplots to show the individual signals and the final modulated signal.

Uploaded by

Dipti Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Jaypee Institute of Information Technology: Matlab Project

This document contains the MATLAB code for simulating FM (frequency modulation) modulation. The code takes in user inputs for the message amplitude, carrier amplitude, message frequency, carrier frequency, and modulation index. It then generates and plots the message signal, carrier signal, and frequency modulated signal over time. The plots are displayed in three subplots to show the individual signals and the final modulated signal.

Uploaded by

Dipti Ranjan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Jaypee Institute of Information technology

MATLAB PROJECT
On
FM MODULATION

Submitted To:

Dr.Neetu Singh

Submitted By:
HIMANSHU GAHLYAN
Enroll. ID-15316029
M.tech (ECE-CS)

FM program
clc
clear all
close all
t = 0:0.001:1; %upto 1000 samples
vm = input('Enter Amplitude (Message) = ');
vc = input('Enter Amplitude (Carrier) = ');
fM = input('Enter Message frequency = ');
fc = input('Enter Carrier frequency = ');
m = input('Enter Modulation Index = ');
msg = vm*sin(2*pi*fM*t);
subplot(3,1,1); %plotting message signal
plot(t,msg);
xlabel('Time');
ylabel('Amplitude');
title('Message ');
carrier = vc*sin(2*pi*fc*t);
subplot(3,1,2); %plotting carrier signal
plot(t,carrier);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
y = vc*sin(2*pi*fc*t+m.*cos(2*pi*fM*t));
subplot(3,1,3);%plotting FM (Frequency Modulated) signal
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('FM Signal');

O/P:

Enter Amplitude (Message) = 2


Enter Amplitude (Carrier) = 4
Enter Message frequency = 4
Enter Carrier frequency = 50
Enter Modulation Index = 6

You might also like