Skip to content
Advertisement

Define correct scipy.signal.spectrogram input parameters

I have the following code:

JavaScript

which is giving me the following plot: enter image description here

What is the correct way to define the correct parameters, namely: nperseg, nfft and noverlap to obtain a correct and smooth plot?

Thank you!

Plot of the input signal: enter image description here

Advertisement

Answer

I was able to solve this issue by normalising the input signal and doing:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement