Advertisement
jack06215

[numpy] rfft() fourier transform

Jul 3rd, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import numpy as np
  2.  
  3. plt.figure(figsize=(20,10))
  4. s = abs(np.sin(np.arange(0,2**13,3)))
  5. sp = np.fft.rfft(s)
  6. plt.plot(abs(sp))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement