Time for action – plotting the Hamming window
Let's plot the Hamming window. Perform the following steps to do so:
Call the NumPy
hamming
function to calculate the Hamming window.window = np.hamming(42)
Plot the window with Matplotlib.
plot(window) show()
The Hamming window plot is shown as follows:
What just happened?
We plotted the Hamming window with the NumPy hamming
function.