Created
February 28, 2020 11:37
-
-
Save 0xfe/db8bbd3c1c8635e3b6fb8c2e28c93e20 to your computer and use it in GitHub Desktop.
Impulse Signal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
points = 256 | |
y = np.zeros(points, dtype="complex64") | |
y[20] = np.complex(1,0) # stick a 1 into the 20th position | |
plt.figure(figsize=(10, 3)) | |
plt.bar(np.arange(100), np.absolute(y)[:100]) # Show the first 100 points | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment