Friday, November 28, 2014

Generation of FM using MATLAB!!!

FM generation code for MATLAB!

%FM generation
t=0:0.001:1;
m=input('Enter modulation Index');
ms=5*sin(2*pi*5*t); %Message signal
cs=5*sin(2*pi*100*t); %Carrier signal
Fm=10*sin(2*pi*50*t+(m.*sin(2*pi*5*t)));%FM signal
subplot(3,1,1);
plot(t,ms);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
subplot(3,1,2);
plot(t,cs);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
subplot(3,1,3);
plot(t,Fm);
xlabel('Time');
ylabel('Amplitude');
title('FM signal');

Output:Enter modulation Index 5








No comments:

Post a Comment

Some useful parameters

Dielectric constant  Metals have infinite Dielectric constant  As usually metals permittivity is very large than of free space hence its Die...