MATLAB program for Amplitude Modulation
To implement Amplitude modulation using MATLAB . just follow simple step given below
[1] Open MATLAB and goto FILE -> NEW -> M-FILE .
[2] Write code in that M-file given below.
fc=10
fm=1
t=0:0.01:5
x=sin(2*pi*fc*t)
y=sin(2*pi*fm*t)
g=(1+y).*x
h=(1+(.8)*y).*x
i=(1+(1.3)*y).*x
subplot(3,1,1); plot(g); title('critical moduation');
subplot(3,1,2); plot(h); title('under moduation');
subplot(3,1,3); plot(i); title('over moduation');
[3] . After writing this code save that M-file and RUn it, After running this code you will see the output as given below. that's all done with programming.
In this program you can change your information signal by changing signal x and you can change your carrier signal by changing value of y signal. I will upload more Matlab programs related to communication on my blog so stay updated and if you have any query with programs leave a comment in the comment box .
OUTPUT :
[1] Open MATLAB and goto FILE -> NEW -> M-FILE .
[2] Write code in that M-file given below.
fc=10
fm=1
t=0:0.01:5
x=sin(2*pi*fc*t)
y=sin(2*pi*fm*t)
g=(1+y).*x
h=(1+(.8)*y).*x
i=(1+(1.3)*y).*x
subplot(3,1,1); plot(g); title('critical moduation');
subplot(3,1,2); plot(h); title('under moduation');
subplot(3,1,3); plot(i); title('over moduation');
[3] . After writing this code save that M-file and RUn it, After running this code you will see the output as given below. that's all done with programming.
In this program you can change your information signal by changing signal x and you can change your carrier signal by changing value of y signal. I will upload more Matlab programs related to communication on my blog so stay updated and if you have any query with programs leave a comment in the comment box .
OUTPUT :
Comments
Post a Comment