GENERATION OF FM SIGNAL DSP MATLAB PROGRAM

GENERATION OF FM SIGNAL


 


 

Fc=input('Enter the carrier frequency in Hz, Fc=');

Fm=input('Enter the modulating frequency in Hz, Fm=');

mf=input('Enter the modulation index, m=');

t=0:0.0001:1;

M=sin(2*pi*Fm*t);

Y=sin((2*pi*Fc*t)-(mf*M));

subplot(3,1,1);

plot(t,M);

axis([0 1 -1.5 1.5]);

title('Frequency modulation');

xlabel('Time');

ylabel('Modulation signal');

subplot(3,1,2);

plot(t,C);

axis([0 1 -1.5 1.5]);

xlabel('Time');

ylabel('Carrier signal');

subplot(3,1,3);

plot(t,Y);

axis([0 1 -1.5 1.5]);

xlabel('Time');

ylabel('FM signal');


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

Observation:


 

Enter the carrier frequency in Hz, Fc=50

Enter the modulating frequency in Hz, Fm=10

Enter the modulation index, mf=2


 


 

0 comments: