Time for action – plotting the Hamming window

Let's plot the Hamming window. Perform the following steps to do so:

  1. Call the NumPy hamming function to calculate the Hamming window.
    window = np.hamming(42)
  2. Plot the window with Matplotlib.
    plot(window)
    show()

    The Hamming window plot is shown as follows:

    Time for action – plotting the Hamming window

What just happened?

We plotted the Hamming window with the NumPy hamming function.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.121.131