Search This Blog

Thursday 29 October 2015

FREQUENCY MODULATION



fs=input('enter the value of sampling frequency'); fc=input('enter the value of carrier frequency'); fm=input('enter the value of modulating frequency'); t=0:(1/fs):2; m=10;
X=sin(2*pi*fm*t);
C=sin(2*pi*fc*t);

FM=sin((2*pi*fc*t)+m*sin(2*pi*fm*t)); subplot(3,1,1); plot(t,X); xlabel('time'); ylabel('frequency'); title('modulating signal'); subplot(3,1,2); plot(t,C); xlabel('time'); ylabel('frequency'); title('carrier signal'); subplot(3,1,3); plot(t,FM); xlabel('time'); ylabel('frequency'); title('frequency modulated signal'); 

No comments:

Post a Comment