Thursday 17 April 2014

Matlab program for generati ng FM signal

%fm

clear all;
clc;

fm1=input('enter message frequency=');
fc=input('enter carrier frequency=');
mi=input('enter modulation index=');

t=0:0.0001:0.1;

m=sin(2*pi*fm1*t); %message signal
subplot(3,1,1);plot(t,m);

c=sin(2*pi*fc*t); %carrier signal
subplot(3,1,2);plot(t,c);

y=sin(2*pi*fc*t+(mi.*sin(2*pi*fm1*t)));
subplot(3,1,3);plot(t,y); %fm signal



........................EXAMPLE OUTPUT......................

%.................................enter message frequency=25......................
%.................................enter carrier frequency=400.......................
%.................................enter modulation index=10.......................





References

http://en.wikipedia.org/wiki/Frequency_modulation
http://www.slideshare.net/sidek91/chapter-4-frequency-modulation
http://en.wikibooks.org/wiki/Communication_Systems/Frequency_Modulation
http://www.mathworks.in/help/comm/ref/fmmod.html
http://stackoverflow.com/questions/19097771/matlab-fm-modulation
 

No comments:

Post a Comment