Time for action – plotting the Hamming window

Let's plot the Hamming window:

  1. Call the NumPy hamming() function:
    window = np.hamming(42)
  2. Plot the window with matplotlib:
    plt.plot(window)
    plt.show()

    The Hamming window plot appears 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