You are on page 1of 3

QUESTION:

Implement any communication based mini


projects for MATLAB?

MATLAB PROJECT
Submitted by: Faryal Siddiqui
PROJECT NAME: FM RADIO TRANSMISSION AND RECEPTION

% First we will define parameters


Fs = 1000; % Sampling frequency
Fc = 100; % Carrier frequency
messageFreq = 10; % Message signal frequency
messageAmp = 1; % Message signal amplitude
modulationIndex = 5; % Modulation index for FM

% Generate a message signal


t = 0:1/Fs:1; % Time vector
messageSignal = messageAmp * sin(2*pi*messageFreq*t);

% Modulate the message signal using FM


fmSignal = fmmod(messageSignal,Fc,Fs,modulationIndex);

% Add noise to simulate transmission


noisePower = 0.01;
noisySignal = fmSignal + sqrt(noisePower) * randn(size(fmSignal));

% Demodulate the received signal


demodulatedSignal = fmdemod(noisySignal, Fc, Fs, modulationIndex);

% Plot the original, modulated, and demodulated signals;


subplot(3,1,1);
plot(t, messageSignal);
title('Original Message Signal')

subplot(3,1,2);
plot(t, fmSignal);
title('FM Modulated Signal');

subplot(3,1,3);
plot(t, demodulatedSignal);
title('Demodulated Signal');

% Play the original and demodulated audio signals


sound(messageSignal, Fs);
pause(1);
sound(demodulatedSignal, Fs)

Overview:
In this project, we create a basic sinusoidal message signal, apply frequency modulation
(FM) to modulate it, simulate transmission by adding noise, and finally demodulate the signal
that was received. Plots are used to visualize the original message signal, the FM-modulated
signal, and the demodulated signal.

You might also like