Powered By Blogger

Friday 22 April 2016

Demodulation MATLAB code

CODE:
t=0:0.0005:1;
fc=5;
fs=50;
f=5;
m=sin(2*pi*f*t);
subplot(3,1,1);
plot( t , m),grid on;
title('Modulating signal');
xlabel('Time');
ylabel('Amplitude');
y=modulate(m,fc,fs,'amdsb-sc',1); 
subplot(3,1,2);
plot(t , y),  grid on;
title('Modulated Signal');
xlabel('Time');
ylabel('Amplitude');z=demod(y,fc,fs ,'amdsb-sc'); 
subplot(3,1,3);
plot(t, 2*z);
ylim([-1 1]);
title('Demodulated output');
grid on;
ylabel('Amplitude');
xlabel('Time');
 Result:
 Result of Modulation

No comments:

Post a Comment