28.08.2022 Views

Sudirman_09011282025056

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Nama : Sudirman

Kelas : SK3B Indralaya

NIM : 09011282025056

UAS PSD





No. 3

Sinyal analog mempunyai persamaan bahwa xa t = 2 sin 2π. 100t + cos(2π. 400t)

disampling dengan frekuensi sampling 1 kHz.

a) Berapa frekuensi sinyal analog xa t .

b) Bepapa frekuensi Nyquist.

c) Berapa laju Nyquist.

d) Tentukan sinyal diskrit hasil samplingnya.

e) Berapa frekuensi digital sinyal hasil sampling.

f) Apakah terjadi aliasing? Jelaskan.

g) Apabila sinyal analog tersebut disampling dengan frekuensi sampling 600 Hz,

apakah terjadi aliasing? Jelaskan.

Penyelesaian:

a) Frekuensi sinyal analog xa t adalah f1 = 100 Hz dan f2 = 400 Hz atau dalam

pernyataan lain Ω1 = 200π rad/det dan Ω2 = 800π rad/det.

b) Frekuensi Nyquist ΩN = 800π rad/det.

c) Laju Nyquist 2ΩN = 1600π rad/det.

d) Sinyal diskrit x n = xa (nT) = 2 sin 0.2πn + cos(0.8πn)

e) Frekuensi digital sinyal x(n) adalah ω1 = 0.2π rad dan ω2 = 0.8π rad

f) Sistem ADC tersebut tidak terjadi aliasing karena frekuensi sampling

Ωs = 2π1000 = 2000π rad/det lebih besar dari laju Nyquist 2ΩN = 1600π

rad/det.

g) Ya, terjadi aliasing karena frekuensi sampling Ωs = 2π600 = 1200π rad/det

kurang dari laju Nyquist 2ΩN = 1600π rad/det.

N0.6

impulse = signal.unit_impulse(10, 'mid')

shifted_impulse = signal.unit_impulse(10, 2)

plt.figure(figsize = (10, 8))

plt.subplot(2, 2, 1)

plt.plot(np.arange(-5, 5), impulse, linewidth = 3, label = 'Unit Impulse Function')


plt.ylim(-0.01, 1)

plt.xlabel('time.', fontsize = 15)

plt.ylabel('Amplitude', fontsize = 15)

plt.legend(fontsize = 10, loc = 'upper right')

plt.subplot(2, 2, 2)

plt.plot(shifted_impulse, linewidth = 3, label = 'Shifted Unit Impulse Function')

plt.xlabel('time.', fontsize = 15)

plt.ylabel('Amplitude', fontsize = 15)

plt.legend(fontsize = 10, loc = 'upper right')

<matplotlib.legend.Legend at 0x2b59b91c1f0>

6.Sinus Signal

In [4]:

t = np.linspace(0, 10, 100)

amp = 10 #Amplitude

f = 100

x = amp * np.sin(2 * np.pi * f * t)

plt.subplot(2, 2, 3)

plt.plot(t, x, linewidth = 3, label = 'Sine Wave')

plt.xlabel('time.', fontsize = 20)

plt.ylabel('Amplitude', fontsize = 20)

plt.legend(fontsize = 10, loc = 'upper right')

<matplotlib.legend.Legend at 0x138313918b0>

Out[4]:


7. Exponen Signal

In [5]:

x_ = amp * np.exp(-t)

plt.subplot(2, 2, 4)

plt.plot(t, x_, linewidth = 3, label = 'Exponential Signal')

plt.xlabel('time.', fontsize = 15)

plt.ylabel('Amplitude', fontsize = 15)

plt.legend(fontsize = 10, loc = 'upper right')

plt.tight_layout()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!