NIM : G1B018040
Tugas 2
subplot(2,1,2)
spectrogram(yq,128,120,128,1E3,'yaxis')
title('sistem nonlinear kuadrat')
Hasil Gambar :
2. Korelasi dan konvolusi
Jawab :
subplot(2,1,1)
plot(f,m)
title('Jarak')
ax = gca;
ax.XTick = [15 40 60 85];
subplot(2,1,2)
plot(f,p*180/pi)
title('Fase')
ax = gca;
ax.XTick = [15 40 60 85];
hasil gambar :
3. DTFT
Jawab :
Hasil Gambar :
4. Menentukan posisi zero dan pole dari fungsi Z
Jawab :
pembilang = [2 16 44 56 32];
penyebut = [3 3 -15 18 -12];
[z,p,k] = tf2zp (pembilang, penyebut);
zplane (z,p)
zplane (pembi1ang, penyebut)
penyebut = [3 3 -15 18 -12];
[z,p,k] = tf2zp (pembilang,penyebut);
disp('Zero pada posisi = ');disp(z)
disp('Pole pada posisi =');disp(p)
disp ('Konstanta gain adalah = ');disp (k)
%Menggambar zero dan pole pada bidang z
zplane (z,p)
xlabel ('real')
ylabel ('imajiner')
Hasil Gambar:
5. Desain filter FIR maupun IIR
fs = 1e4;
t = 0:1/fs:1;
y = hilbert(x);
plot(t,real(y),t,imag(y))
xlim([0.01 0.03])
legend('real','imajiner')
title('fungsi Hilbert')
hasil gambar :