Skip to content

Instantly share code, notes, and snippets.

@0xfe
Created February 28, 2020 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xfe/154b2a1b0be3fd92cdae206b829b38ba to your computer and use it in GitHub Desktop.
Save 0xfe/154b2a1b0be3fd92cdae206b829b38ba to your computer and use it in GitHub Desktop.
FFT of Impulse Signal
points = 256
y = np.zeros(points, dtype="complex64")
y[20] = np.complex(1,0)
ifft_y = fft.irfft(y) * points
plt.figure(figsize=(10, 3))
plt.plot(ifft_y)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment