Skip to content

Instantly share code, notes, and snippets.

View doronbehar's full-sized avatar

Doron Behar doronbehar

View GitHub Profile
@doronbehar
doronbehar / fft_x_axis_arrays_demonstration.py
Last active October 28, 2024 15:25
What was fftshift created for?
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
N = 10_000
t = np.linspace(-10, 10, N)
signal = np.exp(-t**2)
signal_f = np.abs(np.fft.fft(signal))