How to plot FM wave using MATLAB

1.Introduction:-
FM wave is defined as the frequency of carrier wave is varies with respect to the modulating signal.
These signals are used in FM transmission and reception.


2.Problem Statement:-
To plot FM(Frequency Modulated) signal using MATLAB.


3.Program:-

clc;
clear all;
close all;
t=0:0.0001:1;
em=5;
ec=5;
fm=10;
fc=100;
a=em*sin(2*pi*fm*t);
subplot(3,1,1);
plot(t,a);
xlabel('time');
ylabel('amplitude');
title('modulating signal');
b=ec*sin(2*pi*fc*t);
subplot(3,1,2);
plot(t,b);
xlabel('time');
ylabel('amplitude');
title('carrier signal');
m=1;
c=ec*sin(2*pi*fc*t+m*a);
subplot(3,1,3);
plot(t,c)
xlabel('time');
ylabel('amplitude');
title('modulated signal');


4.How to use this code:-
Here you have to only copy the code to MATLAB and just run it and on figure window all signal will appear.


5.Output :-



 Figure Window  


                              

6.Conclusion -


Here we have successfully plot the FM (Frequency Modulation) using MATLAB .

Comments

Popular post

How to add ,read,insert IMAGE in MATLAB

How to plot different discrete signal using MATLAB

How to do Frequency Shift Keying (FSK) using MATLAB