Python, Programming, Computer Science, Data Science, Electrical Engineering.
plt.ylabel('Amplitude') plt.show() This produces the graph plot: Next we can calculate the Fourier Transform of the signal from the graph. X=FFT(x) # calculate the frequency N = len(X) n = np.arange(N) T = N/sr freq = n/T plt.figure(figsize = (12, 6)) plt.subplot(121) plt.stem(freq, abs(X), 'b', \