Answers for "using fft to compute fourier transforms python"

1

fast fourier transform python

# This is from the question
from scipy.fftpack import fft

# Number of samplepoints
N = 600

# Sample spacing
T = 1.0 / 800.0
x = np.linspace(0.0, N*T, N)
y = np.sin(50.0 * 2.0*np.pi*x) + 0.5*np.sin(80.0 * 2.0*np.pi*x)
yf = fft(y)
Posted by: Guest on December-15-2020

Code answers related to "using fft to compute fourier transforms python"

Python Answers by Framework

Browse Popular Code Answers by Language