You are on page 1of 4

TUGAS 2 PENGOLAHAN SINYAL

Anggota Kelompok:
1. Auliaur Rohman (1113100009)
2. Aditya Yosita Rahadini (1113100018)
3. Nurul Huda (1113100048)
4. Nihlatunnur (1113100081)

INSTITUT TEKNOLOGI SEPULUH NOPEMBER


SURABAYA
2015/2016
TUGAS 1
Variasi 1 menggunakan variasi frekuensi, frekuensi sampling dan bentuk fungsi

Fs=200;
t=(1:100)/Fs;
f=15;
s=(2)*cos(3*pi*f*t);
subplot(2,1,1)
plot(t,s)
xlabel('time')
ylabel('magnitude')

S=fft(s,512);
w=(0:255)/256*(Fs/2);
subplot(2,1,2)
plot(w,abs(S(1:256)))
xlabel('frequency')
ylabel('magnitude')
Variasi 2 menggunakan variasi frekuensi, frekuensi sampling dan bentuk fungsi yang bereda
dengan sebelumnya
Fs=300;
t=(1:100)/Fs;
f=20;
s=(4)*sin(2*pi*f*t);
subplot(2,1,1)
plot(t,s)
xlabel('time')
ylabel('magnitude')

S=fft(s,512);
w=(0:255)/256*(Fs/3);
subplot(2,1,2)
plot(w,abs(S(1:256)))
xlabel('frequency')
ylabel('magnitude')
TUGAS 2
Menggabungkan 2 sinyal yang telah terbentuk sebelumnya, dengan variasi frekuensi
sampling 250
Fs=250;
t=(1:500)/Fs;
f1=15;
s1=(2)*cos(3*pi*f*t);
f2=20;
s2=(4)*sin(2*pi*f*t);
s=s1+s2;
subplot(2,1,1)
plot(t,s)
xlabel('domain waktu')
ylabel('magnitude')

S=fft(s,512);
w=(0:255)/256*(Fs/2);
subplot(2,1,2)
plot(w,abs(S(1:256)))
xlabel('domain frekuensi')
ylabel('magnitude')

You might also like