Friday 4 November 2016

Program to generate FM Signal and Analyze the effect of increasing modulation index for each modulation technique.

// FM --> Frequency Modulation

Ac=10;
Am=10;
wm=2*%pi*25;
wc=2*%pi*400;
t=[1:0.0002:1.1];

m=Am*cos(wm*t);
c=Ac*cos(wc*t);


subplot(5,1,1);
mf=10;
Sam1=Ac*cos(wc.*t+(mf)*sin(wm.*t));
plot(t,Sam1,'red');
legend('m=10');

mf=12;
subplot(5,1,2);
Sam=Ac*cos(wc.*t+mf*sin(wm.*t));
plot(t,Sam ,'blue');
legend('m=12');
xlabel('Time');
ylabel('Amplitude');


subplot(5,1,3);
mf=15;
Sam=Ac*cos(wc.*t+(mf)*sin(wm.*t));
plot(t,Sam,'black');
legend('m=15');


subplot(5,1,4);
mf=20;
Sam=Ac*cos(wc.*t+(mf+20)*sin(wm.*t));
plot(t,Sam,'green');
legend('m=20');

subplot(5,1,5);
mf=15;
Sam1=Ac*cos(wc.*t+(mf)*sin(wm.*t));
plot(t,m,'black',t,c,'green',t,Sam1,'blue');
legend('m=15');

// Output
Program to generate FM Signal and Analyze the effect of increasing modulation index for each modulation technique.
                                FM --> Frequency Modulation

No comments:

Post a Comment