I am performing a spectrogram using the function matplotlib.mlab.specgram
see link.
One of its arguments is the window function and the default one is the hanning window.
The signal to which I am applying the function is longer than the size of the block into which the signal is divided, that is the single slice of the spectrogram (I use NFFT = 512).
Here my question and my problem: I would like to change the window function from the default one -hanning_window()
- to window_none()
. One of the argument of matplotlib.mlab.specgram
is indeed window
to change the window function. But if I simply write among the arguments of the specgram function window=matplotlib.mlab.window_none()
an error occurs since I am not specifying the array to which the window function must be applied. How can I specify this argument given the fact that the window function must be applied to several arrays of size NFFT and not to a single array, i.e. each block of length NFFT in which the signal is divided?