the Program for coding Freequency Modulation is
clc;
fs=1000;
fc=100;
t=[0:fs]/fs;
k=50;
x=sin(2*pi*t);
subplot(3,1,1);
plot(t,x);
title('message sigal');
xlabel('time');
ylabel('amplitude');
y=fmmod(x,fc,fs,k);
subplot(3,1,2);
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('modulated signal');
z=fmdemod(y,fc,fs,k);
subplot(3,1,3);
plot(t,z);
xlabel('time');
ylabel('amplitude');
title('demodulated wave');
The Output for the above program is:
clc;
fs=1000;
fc=100;
t=[0:fs]/fs;
k=50;
x=sin(2*pi*t);
subplot(3,1,1);
plot(t,x);
title('message sigal');
xlabel('time');
ylabel('amplitude');
y=fmmod(x,fc,fs,k);
subplot(3,1,2);
plot(t,y);
xlabel('time');
ylabel('amplitude');
title('modulated signal');
z=fmdemod(y,fc,fs,k);
subplot(3,1,3);
plot(t,z);
xlabel('time');
ylabel('amplitude');
title('demodulated wave');
The Output for the above program is:
No comments:
Post a Comment