Skip to content

Instantly share code, notes, and snippets.

Created Mar 2, 2020
What would you like to do?
Return the spectrogram of a complex-valued signal
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