Python DTFT Periodicity
Python DTFT Periodicity
w = np.linspace(0,6*pi,num = N)
x_w = exp(1j*w)/(exp(1j*w)-0.5)
figure(3)
plot(w,abs(x_w),label='Amplitude Spectrum')
plot(w,np.angle(x_w),label='Phase Spectrum')
plt.xlabel('Digital Frequency (radians)')
legend(bbox_to_anchor=(.5, .9), loc=1, borderaxespad=0.)