You are on page 1of 1

Nama : Hanifa Ananda Putri

NIM : 1711014120006
Matkul : Pengolahan Sinyal Digital

NO Listing Tampilan
.
2. n = 1 : 1: 5;
x = [ -1 -1 0 0 0 ];
h = [ 0 0 0 1 1 ];
hx = conv ( x,h);
subplot(3,1,1);
stem(n,h);
subplot(3,1,2);
stem(n,x);
nn = -2:1:9;

subplot(3,1,3);
stem(nn,hx);

3. Fs=200;
t=(1:500)/Fs;
f1=1; %
frekuensi = 1
s1=(2)*sin(2*pi*f1*t); %
amplitudo = 2
f2=10; %
frekuensi = 10
s2=(1)*sin(2*pi*f2*t); %
amplitudo = 1
f3=60; %
frekuensi = 60
s3=(0.5)*sin(2*pi*f2*t); %
amplitudo = 0.5
s=s1+s2+s3;
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