Guest User

Untitled

a guest
Mar 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. lenfft = len(sinal)/2.
  5. nyq = sampling_rate/2.
  6. freq_axis = np.linspace(0, nyq, lenfft+1)
  7. spectrum = np.abs(np.fft.rfft(sinal))
  8.  
  9. plt.plot(freq_axis, spectrum)
Add Comment
Please, Sign In to add comment