Created
March 2, 2020 16:27
-
-
Save 0xfe/08204e72217ce29f06ac4c1ba7dd4d39 to your computer and use it in GitHub Desktop.
Return the spectrogram of a complex-valued signal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy import signal | |
def spectrogram(xs): | |
return signal.spectrogram(xs, 256, window=('hann'), nperseg=256, nfft=256, noverlap=200, mode='complex') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment