FM without noise

Fs = input(‘enter the value of Fs ‘); % Sampling rate of signal

Fc = input(‘enter the value of Fc ‘); % Carrier frequency

t = [0:Fs]’/Fs; % Sampling times

x = sin(2*pi*20*t)%+2*sin(2*pi*60*t); % Channel

dev = input(‘enter the value of dev ‘);% Frequency deviation in modulated signal

y = fmmod(x,Fc,Fs,dev); % Modulate both channels.

z = fmdemod(y,Fc,Fs,dev); % Demodulate both channels.

figure;

subplot(3,1,1);

plot(x);

subplot(3,1,2);

plot(y);

subplot(3,1,3);

plot(z);

Everything is already explained in the descriptions so you need not to worry about all the terms. Just remember them. The Fourth line however is a formula if you are not able to catch. It’s a formula like 2 sin wt . The following Program code will also give a graph on running.

# Frequency Modulation FM without Noise MATLAB Programming Code

Program for FM without Noise also includes coding for the modulation and demodulation of the frequency. Here is the code.