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.
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.