Categories
FFT2 in Python, how does this package work? What can I apply for input? What's the output?
Please tell me how to correctly set the data array so that fft2 processes them correctly.
Answer the question
In order to leave comments, you need to log in
fft2 requires a two-dimensional array. You can create in different ways. For example:
import numpy as np array1 = np.arange(5*5).reshape(5, 5) print(np.fft.fft2(array1)) t = np.sin(np.linspace(0, np.pi, 100)) array2 = np.vstack([t,t]) print(np.fft.fft2(array2))
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question