MATLAB Code For Frequency Modulation

In FM, frequency of the carrier signal having high frequency is varied in accordance with the instantaneous amplitude of the 

modulating signal having low frequency. Frequency modulated signals are widely used in television and radio transmission 

systems. FM signals can be easily plotted using simple MATLAB functions. 



%%%%% Program For Frequency modulation %%%%%%%%%%%%%
clc;
clear all;
close all;
fm=input('Enter the Message Frequency-:  ');
fc=input('Enter the Carrier Frequency-: ');
mi=input('Modulation Index-: ');
t=0:0.001:1;
m=sin(2*pi*fm*t);% Message Signal
subplot(3,1,1);
plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message Signal');
grid on;

c=sin(2*pi*fc*t);% Carrier Signal
subplot(3,1,2);
plot(t,c);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
grid on;
y=sin(2*pi*fc*t+(mi.*sin(2*pi*fm*t)));%Frequency modulation
subplot(3,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('FM Signal');
grid on;


%%%%%%%%%%%%%%%%% END %%%%%%%%%%%%
Example
Enter the Message Frequency-:  10
Enter the Carrier Frequency-: 100
Modulation Index-: 5

Contact:  
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Contact Us

Name

Email *

Message *

Blog Archive

Blog Archive

Popular posts