0% found this document useful (0 votes)
36 views

Tugas 2 Andre PDF

This document contains code for analyzing amplitude modulation (AM) in MATLAB. It defines variables for the modulating signal frequency, carrier signal frequency, and time vector. It generates the modulating signal, carrier signal, and AM signal in the time domain. It then takes the Fourier transform of the AM signal to view it in the frequency domain. Finally, it plots the time domain signals on subplots to visualize the modulation.

Uploaded by

Faiz Ady
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Tugas 2 Andre PDF

This document contains code for analyzing amplitude modulation (AM) in MATLAB. It defines variables for the modulating signal frequency, carrier signal frequency, and time vector. It generates the modulating signal, carrier signal, and AM signal in the time domain. It then takes the Fourier transform of the AM signal to view it in the frequency domain. Finally, it plots the time domain signals on subplots to visualize the modulation.

Uploaded by

Faiz Ady
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

TUGAS 2

NAMA

: ANDRIAN RISKY RAHMAN

NIM

: 115514018

KELAS

: ELKOM B 2011

fm1=18;
fm2=81;
fm=fm1+fm2;
ts=100;
fc=500;
vm=1;
vc=1;
t=-1:1/ts:1;
f=0:1:99;
wc=2*pi*fc;
wm1=2*pi*fm1;
wm2=2*pi*fm2;
wm=wm1+wm2;
V1=sin(2*3.14*fm1*t);
V2=sin(2*3.14*fm2*t);
V3=V1+V2;
Vm=vm*sin(wm*t);
Vc=vc*sin(wc*t);
Vam=(1+sin(wm*t)).*(sin(wc*t));
Vf=abs(fft(Vam,100))/100;
subplot(3,1,1);
plot(t,V1);
title('V1');
xlabel('time'), ylabel('amplitude');
subplot(3,1,2);
plot (t,V2);
title('V2');
xlabel('time'), ylabel('amplitude');
subplot(3,1,3);
plot (t,V3);
title('V3');
xlabel('time'), ylabel('amplitude');
figure;
subplot(4,1,1);
plot(t,Vam);
hold on;
plot(t,V1,'r'),plot(t,V2,'r');
title('AM waveform time-domain');
xlabel('time'), ylabel('amplitude');
grid on;
subplot(4,1,2);
plot(f*10,Vf);
axis([(fc-2*fm) (fc+2*fm) 0 0.6]);
title('AM waveform frequency-domain');
xlabel('frequency'), ylabel('amplitude');
grid on;
subplot(4,1,3);
plot(t,Vm);
title('AM modulating signal');
xlabel('time'), ylabel('amplitude');
grid on;

subplot(4,1,4);
plot(t,Vc);
title('AM carrier signal');
xlabel('time'), ylabel('amplitude');
grid on;

You might also like